package
Version:
v1.0.10
Opens a new window with list of versions in this module.
Published: Apr 30, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ZerologHandler struct {
}
ZerologHandler is a custom handler that adapts slog to zerolog
func (*ZerologHandler) Enabled ¶
Enabled implements the slog.Handler interface
func (*ZerologHandler) Handle ¶
Handle implements the slog.Handler interface
func (*ZerologHandler) WithAttrs ¶
WithAttrs adds attributes to the log event
func (*ZerologHandler) WithGroup ¶
WithGroup returns the handler for a group of logs
Source Files
¶
Click to show internal directories.
Click to hide internal directories.