logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug logs debug messages

func Error

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

Error logs error messages

func Fatal

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

Fatal logs fatal messages and exits

func Info

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

Info logs info messages

func SetLogLevel

func SetLogLevel(level LogLevel)

SetLogLevel sets the current log level

func SetLogLevelFromString

func SetLogLevelFromString(level string)

SetLogLevelFromString sets log level from string

func Warn

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

Warn logs warning messages

Types

type LogLevel

type LogLevel int
const (
	DEBUG LogLevel = iota
	INFO
	WARN
	ERROR
)

Jump to

Keyboard shortcuts

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