logging

package
v0.0.0-...-e164885 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCalldepth = 3
View Source
const DefaultLevel = LevelInfo

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

func Debugf(msg string, args ...any)

func Error

func Error(msg string)

func Errorf

func Errorf(msg string, args ...any)

func Fatal

func Fatal(msg string)

func Fatalf

func Fatalf(msg string, args ...any)

func Info

func Info(msg string)

func Infof

func Infof(msg string, args ...any)

func Logf

func Logf(level LogLevel, calldepth int, msg string, args ...any)

func Panic

func Panic(msg string)

func Panicf

func Panicf(msg string, args ...any)

func SetLogLevel

func SetLogLevel(level LogLevel) error

func SetLogLevelByName

func SetLogLevelByName(levelName string) error

func SetLogLevelFromEnvironment

func SetLogLevelFromEnvironment(envVar string) error

func Warn

func Warn(msg string)

func Warnf

func Warnf(msg string, args ...any)

Types

type LogLevel

type LogLevel int
const (
	LevelPanic LogLevel = iota
	LevelFatal
	LevelError
	LevelWarn
	LevelInfo
	LevelDebug
)

Jump to

Keyboard shortcuts

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