Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶ added in v1.1.6
NewLogger creates a new slog.Logger with a text handler at the given level.
func NewWriter ¶ added in v1.1.6
func NewWriter(logger *slog.Logger) io.WriteCloser
NewWriter returns an io.WriteCloser that logs each line written to it using the provided slog.Logger at Info level.
func ParseLevel ¶ added in v1.1.6
ParseLevel parses a log level string into slog.Level. Supported values: debug, info, warn, error (case-insensitive). Defaults to info if the value is unrecognized.
Types ¶
Click to show internal directories.
Click to hide internal directories.