logs

package
v0.0.0-...-13c8884 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Async

func Async(msgNum int64)

func Close

func Close()

func Critical

func Critical(format string, v ...interface{})

func Debug

func Debug(format string, v ...interface{})

func Debugln

func Debugln(v ...interface{})

func Error

func Error(format string, v ...interface{})

func Errorln

func Errorln(v ...interface{})

func GetLogger

func GetLogger() *ghLogs.BeeLogger

func Info

func Info(format string, v ...interface{})

func Infoln

func Infoln(v ...interface{})

func Init

func Init(cfgFile string) *ghLogs.BeeLogger

func Panicln

func Panicln(v ...interface{})

func SetLogLv

func SetLogLv(lv int)

func SetLogger

func SetLogger(adapterName string, cfg *LogCfg)

func SetLoggerByJson

func SetLoggerByJson(adapterName, jsonCfg string)

func Warn

func Warn(format string, v ...interface{})

func Warnln

func Warnln(v ...interface{})

Types

type LogCfg

type LogCfg struct {
	Filename string `json:"filename,omitempty"`
	MaxLines int    `json:"maxlines,omitempty"` // Rotate at line
	MaxSize  int    `json:"maxsize,omitempty"`  // Rotate at size
	Daily    bool   `json:"daily,omitempty"`    // Rotate daily
	MaxDays  int64  `json:"maxdays,omitempty"`
	Rotate   bool   `json:"rotate,omitempty"`
	Level    int    `json:"level,omitempty"`
	Perm     string `json:"perm,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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