Documentation
¶
Overview ¶
Package logging wires third-party loggers into the agent's slog handler so that every log line the agent emits shares one destination and format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseHandler ¶
BaseHandler returns the handler set with SetBaseHandler, or nil
func BridgeContainerd ¶
BridgeContainerd routes containerd's logrus based output into the default slog logger at the given level. It must be called after slog.SetDefault, and is a no-op on subsequent calls.
func NewLevelHandler ¶
NewLevelHandler returns a handler that drops records below level before passing them to handler
func SetBaseHandler ¶
SetBaseHandler makes the agent log through h instead of its own stdout handler. It is meant for embedders that route logs into the host application logger. Passing nil restores the default stdout handler.
Types ¶
This section is empty.