Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SplitStreamHandler ¶
type SplitStreamHandler struct {
// contains filtered or unexported fields
}
SplitStreamHandler is a custom slog.Handler that splits log output between stdout and stderr based on log level.
func NewSplitStreamHandler ¶
func NewSplitStreamHandler(stdoutWriter, stderrWriter io.Writer, opts *slog.HandlerOptions) *SplitStreamHandler
NewSplitStreamHandler creates a new SplitStreamHandler.
Click to show internal directories.
Click to hide internal directories.