MCPcopy
hub / github.com/rs/zerolog / LevelHook

Struct LevelHook

hook.go:19–21  ·  view source on GitHub ↗

LevelHook applies a different hook for each level.

Source from the content-addressed store, hash-verified

17
18// LevelHook applies a different hook for each level.
19type LevelHook struct {
20 NoLevelHook, TraceHook, DebugHook, InfoHook, WarnHook, ErrorHook, FatalHook, PanicHook Hook
21}
22
23// Run implements the Hook interface.
24func (h LevelHook) Run(e *Event, level Level, message string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected