logging

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basicf

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

func Debugf

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

func Errorf

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

func Fatalf

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

func Init added in v0.0.6

func Init()

func SetLevel

func SetLevel(l LogLevel)

func SyslogDebugf added in v0.0.3

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

On Linux, we attempt to write to the syslog.

Types

type LogLevel

type LogLevel int
const (
	LogLevelOff LogLevel = iota
	LogLevelBasic
	LogLevelDebug
)

func FromString

func FromString(s string) LogLevel

func GetLevel

func GetLevel() LogLevel

Jump to

Keyboard shortcuts

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