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

Struct Hook

hooks/writer/writer.go:10–13  ·  view source on GitHub ↗

Hook is a hook that writes logs of specified LogLevels to specified Writer

Source from the content-addressed store, hash-verified

8
9// Hook is a hook that writes logs of specified LogLevels to specified Writer
10type Hook struct {
11 Writer io.Writer
12 LogLevels []log.Level
13}
14
15// Fire will be called when some logging function is called with current hook
16// It will format log entry to string and write it to appropriate writer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected