logger

package
v4.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(ctx context.Context, outWriter io.Writer, errWriter io.Writer) context.Context

NewLogger creates a new logger instance.

Types

type StdoutLogHandler

type StdoutLogHandler struct {
	Handler log.Handler
}

StdoutLogHandler implementation.

func (*StdoutLogHandler) HandleLog

func (h *StdoutLogHandler) HandleLog(e *log.Entry) error

HandleLog implements log.Handler. It filters out error level logs and above, allowing only info/debug logs to pass through to stdout.

Jump to

Keyboard shortcuts

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