MCPcopy
hub / github.com/argoproj/argo-workflows / Hook

Interface Hook

util/logging/logging.go:138–141  ·  view source on GitHub ↗

Hook is used to tap into the log

Source from the content-addressed store, hash-verified

136
137// Hook is used to tap into the log
138type Hook interface {
139 Levels() []Level
140 Fire(ctx context.Context, level Level, msg string, fields Fields)
141}
142
143// Logger exports a logging interface
144type Logger interface {

Callers 2

NewSlogLoggerCustomFunction · 0.65
executeHooksMethod · 0.65

Implementers 4

testHookutil/logging/init_test.go
fieldsTestHookutil/logging/init_test.go
TestHookutil/logging/test_hook.go
globalLogMetricworkflow/metrics/counter_log.go

Calls

no outgoing calls

Tested by

no test coverage detected