Documentation ¶
Index ¶
- Constants
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorrln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func NewDwarfLog() *lg
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func Setup(cfg *Config)
- type Config
- type LogFormat
- type LogJsonFormat
- type LogLevel
- type LogLevelDate
Constants ¶
View Source
const ( Dot = "." Slash = "/" FileSuffix = ".log" RollingInAdvance = time.Second * 5 // must greater than 0 RollingCheckInterval = time.Second * 3 // must greater than 0 CloseFileDelay = time.Second * 2 // must greater than 0 PaleFormat = LogFormat("pale") JsonFormat = LogFormat("json") PanicLevel = LogLevel("panic") FatalLevel = LogLevel("fatal") ErrorLevel = LogLevel("error") InfoLevel = LogLevel("info") )
Variables ¶
This section is empty.
Functions ¶
func NewDwarfLog ¶
func NewDwarfLog() *lg
Types ¶
type LogJsonFormat ¶
type LogLevelDate ¶
type LogLevelDate string
Click to show internal directories.
Click to hide internal directories.