MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Fire

Method Fire

logger/handler.go:51–51  ·  view source on GitHub ↗

Fire is a function that gets called on log events. The slice provided in the msg parameter contains the formatted log message, followed by a newline character. It is guaranteed to be available for the duration of the hook call. The hook should not modify the contents of the msg slice except for app

(ctx context.Context, time time.Time, lvl slog.Level, msg []byte)

Source from the content-addressed store, hash-verified

49 // It is guaranteed to be available for the duration of the hook call.
50 // The hook should not modify the contents of the msg slice except for appending.
51 Fire(ctx context.Context, time time.Time, lvl slog.Level, msg []byte) error
52}
53
54// Handler is an implementation of [slog.Handler] with support for hooks.

Callers 1

HandleMethod · 0.65

Implementers 2

Hooklogger/syslog/syslog.go
logHookmonitoring/otel/log_hook.go

Calls

no outgoing calls

Tested by

no test coverage detected