logging

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogging

func ConfigureLogging(mode string, isDebug bool) *slog.Logger

func Logger

func Logger() *slog.Logger

func RawLogger added in v1.3.0

func RawLogger() *slog.Logger

RawLogger returns a logger that just prints the message field as-is, without any extra formatting. This is useful for programs that need to output raw data.

Types

type OutputMode

type OutputMode string

OutputMode is a custom type for specifying a small number of allowed parameters in Cobra (cli-library).

const (
	OutputModeText OutputMode = "text"
	OutputModeJSON OutputMode = "json"
)

Jump to

Keyboard shortcuts

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