Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = slog.LevelDebug LevelInfo = slog.LevelInfo LevelWarn = slog.LevelWarn LevelError = slog.LevelError LevelDPanic = slog.Level(9) LevelPanic = slog.Level(10) LevelFatal = slog.Level(11) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an implementation of slog.Handler interface backed by Zap's Logger.
The zero-value of Handler is not usable. Handler should be created/initialized using the NewHandler function.
func NewHandler ¶
NewHandler creates and initializes a new Handler.
This function will panic if passed a nil zap.Logger.
Click to show internal directories.
Click to hide internal directories.