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

Struct Hook

hooks/test/test.go:13–19  ·  view source on GitHub ↗

Hook is a hook designed for dealing with logs in test scenarios.

Source from the content-addressed store, hash-verified

11
12// Hook is a hook designed for dealing with logs in test scenarios.
13type Hook struct {
14 // Entries is an array of all entries that have been received by this hook.
15 // For safe access, use the AllEntries() method, rather than reading this
16 // value directly.
17 Entries []logrus.Entry
18 mu sync.RWMutex
19}
20
21// NewGlobal installs a test hook for the global logger.
22func NewGlobal() *Hook {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected