zlog

package module
v0.1.2-0...-ac6f414 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 10 Imported by: 0

README

zlog

flags:
  -log.age int
        MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename. (default 7)
  -log.backups int
        MaxBackups is the maximum number of old log files to retain. (default 5)
  -log.filename string
        log file name (default "default")
  -log.level string
        log levels:debug/info/warn/error/dpanic/panic/fatal (default "info")
  -log.path string
        log save path (default "/tmp")
  -log.size int
        MaxSize is the maximum size in megabytes of the log file before it gets rotated. It defaults to 10 megabytes. (default 10)

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 Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func InitLogger

func InitLogger()

func Warn

func Warn(args ...interface{})

func Warnf

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

func With

func With(args ...interface{}) *zap.SugaredLogger

func WithField

func WithField(args ...interface{}) *zap.SugaredLogger

Types

This section is empty.

Jump to

Keyboard shortcuts

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