logger

package
v0.0.0-...-c188a41 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg ...any)

func Err

func Err(err error)

func Error

func Error(msg string, err error, vals ...Val)

func Errorf

func Errorf(format string, err error, vars ...any)

func Fatal

func Fatal(msg string, err error)

func Info

func Info(msg ...any)

func Infof

func Infof(format string, msg ...any)

func Panic

func Panic(msg string, err error, vals ...Val)

func Warn

func Warn(msg ...any)

func Warnf

func Warnf(format string, msg ...any)

Types

type LogConf

type LogConf struct {
	Level    string            `yaml:"level"`
	ErrStack bool              `yaml:"errStack"`
	Debug    bool              `yaml:"debug"`
	Caller   bool              `yaml:"caller"`
	File     lumberjack.Logger `yaml:"file"`
}

type Val

type Val struct {
	K string
	V any
}

Jump to

Keyboard shortcuts

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