Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MethodFieldName = "method"
View Source
var PathFieldName = "path"
View Source
var RequestIdFieldName = "request-id"
Functions ¶
func AddCustomJsonLogField ¶ added in v0.4.0
AddCustomJsonLogField is a function to add custom fields to json logs.
The first parameter determines the name of the field. The second parameters is used to determine the value of the field from the logged request. Each invocation adds one extra field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.