Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MtlogLevelToSlog ¶
func MtlogLevelToSlog(level core.LogEventLevel) slog.Level
MtlogLevelToSlog converts mtlog levels to slog levels
Types ¶
type SlogHandler ¶
type SlogHandler struct {
// contains filtered or unexported fields
}
SlogHandler implements slog.Handler backed by mtlog's logger
func NewSlogHandler ¶
func NewSlogHandler(logger core.Logger) *SlogHandler
NewSlogHandler creates a new slog.Handler that writes to the provided mtlog logger
func (*SlogHandler) Enabled ¶
Enabled reports whether the handler handles records at the given level
Click to show internal directories.
Click to hide internal directories.