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

Function Hook

log/log.go:37–39  ·  view source on GitHub ↗

Hook returns a logger with the h Hook.

(h zerolog.Hook)

Source from the content-addressed store, hash-verified

35
36// Hook returns a logger with the h Hook.
37func Hook(h zerolog.Hook) zerolog.Logger {
38 return Logger.Hook(h)
39}
40
41// Err starts a new message with error level with err as a field if not nil or
42// with info level if err is nil.

Callers 2

ExampleLogger_HookFunction · 0.92
ExampleCtxFunction · 0.92

Calls 1

HookMethod · 0.80

Tested by 2

ExampleLogger_HookFunction · 0.74
ExampleCtxFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…