Documentation ¶
Overview ¶
Package logs implements a simple library for log.
Index ¶
- Constants
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Level
- type Logger
- type Rolling
Constants ¶
View Source
const ( // KB size 1024 * byte KB = 1024 // MB size 1024 * KB MB = KB * 1024 // MinSizeInterval min size of size rolling MinSizeInterval = 10 * KB //10KB // Second time 1 Second = 1 // Minute time 60 * Second Minute = 60 * Second // MinTimeInterval min time of time rolling MinTimeInterval = 10 * Second //10Second )
View Source
const ( // DebugFlag debug level flag DebugFlag = "debug" // InfoFlag info level flag InfoFlag = "info" // WarnFlag warn level flag WarnFlag = "warn" // ErrorFlag error level flag ErrorFlag = "error" // TimeFlag time rolling mode flag TimeFlag = "time" // SizeFlag size rolling mode flag SizeFlag = "size" )
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf print log at debug level with format
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf print log at error level with format
Types ¶
Click to show internal directories.
Click to hide internal directories.