MCPcopy
hub / github.com/sirupsen/logrus / AddHook

Function AddHook

exported.go:50–52  ·  view source on GitHub ↗

AddHook adds a hook to the standard logger hooks.

(hook Hook)

Source from the content-addressed store, hash-verified

48
49// AddHook adds a hook to the standard logger hooks.
50func AddHook(hook Hook) {
51 std.AddHook(hook)
52}
53
54// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
55func WithError(err error) *Entry {

Callers 1

NewGlobalFunction · 0.92

Calls 1

AddHookMethod · 0.80

Tested by

no test coverage detected