Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Async ¶
Async will call the underlying logger methods in a goroutine. If a field in logger is nil, it will not spawn a goroutine.
func Noop ¶
Noop is a logger that does not output anything. The logger and both of its funcs are not nil.
func Slog ¶
Slog creates a device.Logger instance that is backed by a specified slog.Logger. No args are passed to the slog logger, instead the message is created from the format string and args passed to the device.Logger.Verbosef and device.Logger.Errorf funcs. Verbose messages are logged at the Debug level, while errors are logged at the Error level.
Types ¶
Click to show internal directories.
Click to hide internal directories.