Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Martini ¶
Martini is a Martini Middleware that emulates their default logger in the sense that it logs every request and sends it to Papertrail. The logger gets the following info:
- Time taken for request
- IP Address of connecting party
- HTTP Status Code
- HTTP Status Text
- Request Method
- Request Path
The result appears in Papertrail as: [info] 200 OK HEAD 1.109259ms /my/endpoint/ "8.8.8.8"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.