Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents a type that contains a slog.Handler, a function, a bytes.Buffer, and a sync.Mutex.
func NewHandler ¶
func NewHandler(opts *slog.HandlerOptions, format OutputFormat) *Handler
NewHandler is a function that creates a new instance of the Handler struct
func (*Handler) Handle ¶
Handle is a method of the Handler struct that handles a slog.Record and returns an error
type OutputFormat ¶ added in v0.0.9
type OutputFormat int
OutputFormat custom type
const ( JSONFormat OutputFormat = iota TextFormat )
custom
Click to show internal directories.
Click to hide internal directories.