logging

package
v0.1.61 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(level, format string) *slog.Logger

NewLogger creates a new slog.Logger based on the given level and format. Supported levels: debug, info, warn, error. Supported formats: text, json.

func NewLoggerWithWriter

func NewLoggerWithWriter(level, format string, w io.Writer) *slog.Logger

NewLoggerWithWriter creates a new slog.Logger that writes to the given writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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