logging

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupLogger

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

SetupLogger configures a structured logger with the specified format and debug mode.

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