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

Method Run

binary_test.go:56–62  ·  view source on GitHub ↗
(e *Event, l Level, msg string)

Source from the content-addressed store, hash-verified

54type LevelNameHook1 struct{}
55
56func (h LevelNameHook1) Run(e *Event, l Level, msg string) {
57 if l != NoLevel {
58 e.Str("level_name", l.String())
59 } else {
60 e.Str("level_name", "NoLevel")
61 }
62}
63
64type MessageHook string
65

Callers

nothing calls this directly

Calls 2

StrMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected