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

FuncType HookFunc

hook.go:11–11  ·  view source on GitHub ↗

HookFunc is an adaptor to allow the use of an ordinary function as a Hook.

func(e *Event, level Level, message string)

Source from the content-addressed store, hash-verified

9// HookFunc is an adaptor to allow the use of an ordinary function
10// as a Hook.
11type HookFunc func(e *Event, level Level, message string)
12
13// Run implements the Hook interface.
14func (h HookFunc) Run(e *Event, level Level, message string) {

Callers 5

hook_test.goFile · 0.85
TestLevelHookFunction · 0.85
TestEvent_ObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected