log

package
v1.4.295 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(l Level, format string, a ...interface{})

Debug writes a debug message if the global level permits.

func SetLevel

func SetLevel(l Level)

SetLevel sets the global debug level.

func SetOutput

func SetOutput(w io.Writer)

SetOutput allows overriding the output destination for debug logs.

Types

type Level

type Level int

Level represents the debug verbosity.

const (
	// Off disables all debug output.
	Off Level = iota
	// Basic provides minimal debugging information.
	Basic
	// Detailed provides more verbose debugging.
	Detailed
	// Trace is the most verbose level.
	Trace
)

func LevelFromInt

func LevelFromInt(i int) Level

LevelFromInt converts an int to a Level.

Jump to

Keyboard shortcuts

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