logging

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupLogger

func SetupLogger(debug bool, logFormat LogFormat, output io.Writer) *slog.Logger

SetupLogger configures a structured logger.

Types

type LogFormat

type LogFormat string

LogFormat defines the supported log formats.

const (
	LogFormatText LogFormat = "text"
	LogFormatJSON LogFormat = "json"
)

Jump to

Keyboard shortcuts

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