logging

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package logging contains providers for common loggers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Legacy added in v0.19.0

func Legacy(logger *slog.Logger, level slog.Level) *log.Logger

Legacy creates a log.Logger that logs to the given log/slog.Logger.

func ProvideLogger added in v0.18.0

func ProvideLogger(config Config) *slog.Logger

Types

type Config added in v0.18.0

type Config struct {
	Level slog.Level `help:"The default logging level." default:"info"`
	JSON  bool       `help:"Enable JSON logging."`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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