lyslog

package
v0.3.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 4 Imported by: 0

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.

func (*SplitStreamHandler) Enabled

func (h *SplitStreamHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*SplitStreamHandler) Handle

func (h *SplitStreamHandler) Handle(ctx context.Context, r slog.Record) error

func (*SplitStreamHandler) WithAttrs

func (h *SplitStreamHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*SplitStreamHandler) WithGroup

func (h *SplitStreamHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL