Documentation
¶
Overview ¶
Package logutil is a utility package for github.com/sirupsen/logrus.
Index ¶
Examples ¶
Constants ¶
View Source
const ( // ComponentKey is the field key used to store the component name. ComponentKey = "component" // MethodKey is the field key used to store the methodname. MethodKey = "method" )
Variables ¶
This section is empty.
Functions ¶
func AddComponent ¶ added in v0.3.0
AddComponent appends the component name to the logrus.Entry.
Example ¶
Output: level=info msg="Added 'SomeStruct' component." component=logutil_test.SomeStruct level=info msg="Added 'SomeFunc' component." component="[logutil_test.SomeStruct logutil_test.SomeFunc]" level=info msg="First logger component unchanged." component=logutil_test.SomeStruct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.