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

Method Run

hook.go:6–6  ·  hook.go::Hook.Run

Run runs the hook with the event.

(e *Event, level Level, message string)

Source from the content-addressed store, hash-verified

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

Callers 15

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
msgMethod · 0.65
TestSamplersFunction · 0.65
BenchmarkSamplersFunction · 0.65
TestHookFunction · 0.65

Implementers 5

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

Calls

no outgoing calls

Tested by 15

TestLogFunction · 0.52
TestInfoFunction · 0.52
TestEmptyLevelFieldNameFunction · 0.52
TestLevelFunction · 0.52
TestLevel_StringFunction · 0.52
TestLevel_MarshalTextFunction · 0.52
TestParseLevelFunction · 0.52
TestUnmarshalTextLevelFunction · 0.52
TestSamplersFunction · 0.52
BenchmarkSamplersFunction · 0.52
TestHookFunction · 0.52
BenchmarkHooksFunction · 0.52