log

package
v0.0.0-...-4e26a97 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Info

func Info(args ...interface{})

func Infof

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

func Init

func Init(config *Config)

func Panicf

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

func Shutdown

func Shutdown()

func Sync

func Sync()

func Warnf

func Warnf(template string, args ...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