log

package
v0.0.0-...-302ece3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Infow

func Infow(msg string, keysAndValues ...interface{})

func Init

func Init(conf *Config)

func Panicf

func Panicf(template string, args ...interface{})

func Panicw

func Panicw(msg string, keysAndValues ...interface{})

func Shutdown

func Shutdown()

func Sync

func Sync()

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

Types

type Config

type Config struct {
	StdoutLevel string `yaml:"stdout_level"`
	Level       string `yaml:"level"`
	Filename    string `yaml:"filename"`
	MaxSize     int    `yaml:"maxsize"`
	MaxAge      int    `yaml:"maxage"`
	MaxBackups  int    `yaml:"maxbackups"`
	Compress    bool   `yaml:"compress"`
}

Jump to

Keyboard shortcuts

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