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

Interface Hook

hook.go:4–7  ·  hook.go::Hook

Hook defines an interface to a log hook.

Source from the content-addressed store, hash-verified

2
3// Hook defines an interface to a log hook.
4type Hook interface {
5 // Run runs the hook with the event.
6 Run(e *Event, level Level, message string)
7}
8
9// HookFunc is an adaptor to allow the use of an ordinary function
10// as a Hook.

Callers 8

TestLogFunction · 0.65
TestInfoFunction · 0.65
TestEmptyLevelFieldNameFunction · 0.65
TestLevelFunction · 0.65
TestLevel_StringFunction · 0.65
TestLevel_MarshalTextFunction · 0.65
TestParseLevelFunction · 0.65
TestUnmarshalTextLevelFunction · 0.65

Implementers 5

LevelNameHooklog_example_test.go
LevelNameHook1binary_test.go
LevelHookhook.go
timestampHookcontext.go
callerHookcontext.go

Calls

no outgoing calls

Tested by

no test coverage detected