log

package
v1.11.9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Logger is used for all messages that are printed to stdout
	Logger *slog.Logger
)

Functions

func SetupLogging

func SetupLogging(configLogLevel int, formatJSON bool, useColor bool, addSource bool, instance string)

SetupLogging initializes the global "Logger" object. It is safe to call multiple times; subsequent calls reconfigure the logger.

Types

This section is empty.

Directories

Path Synopsis
Package color provides ANSI color helpers and a slog.Handler wrapper that preserves slog.TextHandler formatting while coloring entire lines.
Package color provides ANSI color helpers and a slog.Handler wrapper that preserves slog.TextHandler formatting while coloring entire lines.
Package level is a thin compatibility wrapper that mimics common go-kit/log/level usage patterns while delegating to the Go standard library's log/slog package.
Package level is a thin compatibility wrapper that mimics common go-kit/log/level usage patterns while delegating to the Go standard library's log/slog package.

Jump to

Keyboard shortcuts

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