Documentation
¶
Index ¶
Constants ¶
View Source
const PprofCPUOutput = "cpu.prof"
View Source
const PprofMemOutput = "mem.prof"
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
Logger logs incoming request in a standardized format.
method=POST url=/users.get status=200 size=42 duration=10ms
The middleware inject a [LogFields] object into the context allowing the next handlers to add custom fields to the log line:
method=POST url=/users.get status=200 size=42 duration=10ms team=xxxx-xxxx-xxxx-xxxxxxxx
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.