Documentation
¶
Overview ¶
Package sloghandler provides a slog.Handler adapter for clog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates a slog.Handler that routes slog.Record entries through the given clog clog.Logger.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements slog.Handler by routing records through a clog clog.Logger.
func (*Handler) Handle ¶
Handle converts a slog.Record into a clog event and logs it.
Click to show internal directories.
Click to hide internal directories.