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

Struct TestHook

hook_test.go:18–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16)
17
18type TestHook struct {
19 Fired bool
20}
21
22func (hook *TestHook) Fire(entry *Entry) error {
23 hook.Fired = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected