flog

package
v0.0.0-...-78fecf6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel = "debug"
	InfoLevel  = "info"
	WarnLevel  = "warn"
	ErrorLevel = "error"
	FatalLevel = "fatal"
	PanicLevel = "panic"
)

Variables

This section is empty.

Functions

func Debug

func Debug(format string, a ...any)

func Error

func Error(err error)

func Fatal

func Fatal(format string, a ...any)

func GetLogger

func GetLogger() zerolog.Logger

func Info

func Info(format string, a ...any)

func Init

func Init()

func Panic

func Panic(format string, a ...any)

func SetLevel

func SetLevel(level string)

SetLevel sets the global logging level based on the provided level.

level: The logging level to set. Valid values are "debug", "info", "warn",

"error", "fatal", "panic". If an invalid level is provided, the
default level is set to "info".

func Warn

func Warn(format string, a ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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