log

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...any)

Debug logs a debug message (verbose debugging information)

func Error

func Error(format string, args ...any)

Error logs an error message (errors that may affect functionality)

func Info

func Info(format string, args ...any)

Info logs an info message (important operational events)

func SetLevel

func SetLevel(level Level)

SetLevel sets the minimum log level to display

func SetOutput

func SetOutput(w io.Writer)

SetOutput sets the output destination (primarily for testing)

func Warn

func Warn(format string, args ...any)

Warn logs a warning message (warnings that don't prevent operation)

Types

type Level

type Level int32

Level represents the severity of a log message

const (
	// LevelDebug is for verbose debugging information
	LevelDebug Level = iota
	// LevelInfo is for important operational events
	LevelInfo
	// LevelWarn is for warnings that don't prevent operation
	LevelWarn
	// LevelError is for errors that may affect functionality
	LevelError
)

func GetLevel

func GetLevel() Level

GetLevel returns the current minimum log level

func (Level) String

func (l Level) String() string

String returns the string representation of the log level

Jump to

Keyboard shortcuts

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