logger

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName string
)
View Source
var DefaultLoggerConfig = Config{
	Level: zerolog.ErrorLevel,
}

Functions

func Close added in v2.4.0

func Close()

func Debug

func Debug() *zerolog.Event

func Error

func Error() *zerolog.Event

func Fatal

func Fatal() *zerolog.Event

func GetLevel added in v2.4.0

func GetLevel() zerolog.Level

func Info

func Info() *zerolog.Event

func Init added in v2.4.0

func Init(cfg Config)

func NoLevel added in v2.4.3

func NoLevel() *zerolog.Event

func Panic added in v2.4.0

func Panic() *zerolog.Event

func Reload added in v2.4.0

func Reload(cfg Config)

func Warn added in v2.4.0

func Warn() *zerolog.Event

Types

type Config added in v2.3.0

type Config struct {
	Level zerolog.Level
	File  *FileConfig
}

type FileConfig added in v2.4.0

type FileConfig struct {
	Enabled    bool
	Path       string
	MaxSizeMB  int
	MaxBackups int
	MaxAgeDays int
	Compress   bool
}

Jump to

Keyboard shortcuts

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