logging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRACE level = iota
	DEBUG
	INFO
	WARN
	ERROR
)

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func Fatalf

func Fatalf(format string, v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func Init

func Init(levelStr string) error

Init configures the logger. It reads LOG_LEVEL from the environment (one of: TRACE, DEBUG, INFO, WARN, ERROR) and sets a simple prefix.

func Tracef added in v0.4.0

func Tracef(format string, v ...interface{})

func Warnf

func Warnf(format string, v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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