Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatJson = "json" FormatText = "text" FormatPretty = "pretty" FormatStub = "stub" LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrettyHandler ¶
func NewPrettyHandler ¶
func NewPrettyHandler(out io.Writer, opts *slog.HandlerOptions) *PrettyHandler
type StubHandler ¶
type StubHandler struct{}
func NewStubHandler ¶
func NewStubHandler(_ io.Writer, _ *slog.HandlerOptions) *StubHandler
Click to show internal directories.
Click to hide internal directories.