logger

package
v0.0.0-...-227612a Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, attrs ...slog.Attr)

Public API

func Error

func Error(msg string, attrs ...slog.Attr)

func Info

func Info(msg string, attrs ...slog.Attr)

func Init

func Init(cfg Config)

Init initializes the global logger with safe defaults

func Warn

func Warn(msg string, attrs ...slog.Attr)

Types

type Config

type Config struct {
	Level     slog.Level
	Output    io.Writer // Default: os.Stdout
	AddSource bool      // Include call site information
}

Config holds logger configuration

Jump to

Keyboard shortcuts

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