logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keyvals ...interface{})

func Error

func Error(msg string, keyvals ...interface{})

func Fatal

func Fatal(msg string, keyvals ...interface{})

func Info

func Info(msg string, keyvals ...interface{})

func InitGlobalLogger

func InitGlobalLogger(cfg *Config)

func Panic

func Panic(msg string, keyvals ...interface{})

func Trace

func Trace(msg string, keyvals ...interface{})

func Warn

func Warn(msg string, keyvals ...interface{})

Types

type Config

type Config struct {
	Filename   string   `yaml:"file_name"`
	LogLevel   string   `yaml:"log_level"`
	Targets    []string `yaml:"targets"`
	MaxSize    int      `yaml:"max_size"`
	MaxBackups int      `yaml:"max_backups"`
	Compress   bool     `yaml:"compress"`
}

Jump to

Keyboard shortcuts

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