Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelFilter ¶ added in v0.4.0
NewLevelFilter wraps inner, silently dropping records below minLevel. Use this to give a specific handler (e.g. the OTEL log bridge) a different minimum level than the console handler.
func SetLevel ¶ added in v0.14.0
SetLevel changes the console log level of the logger installed by Setup.
func Setup ¶
Setup creates a structured slog.Logger and installs it as the global default. Any additional slog.Handlers (e.g. an OTEL log bridge) can be appended via the extra variadic parameter. Log records are sent to all handlers. timestamps controls whether console records carry a time; disable it under journald, which records its own.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.