Documentation ¶
Index ¶
- Constants
- func AddAdapter(name string, conf string) error
- func CheckLevel(lv string) bool
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Flush()
- func Info(format string, args ...interface{})
- func Output(calldepth int, format string, args ...interface{})
- func RemoveAdapter(name string) error
- func SetFlags(f logFlag)
- func SetLevel(lv string) error
- func Warn(format string, args ...interface{})
Constants ¶
View Source
const ( LevelDebug int LevelInfo LevelWarn LevelError LevelFatal LevelStringDebug = "DEBUG" LevelStringInfo = "INFO" LevelStringWarn = "WARN" LevelStringError = "ERROR" LevelStringFatal = "FATAL" )
View Source
const ( LogDate logFlag LogTime LogMicroTime LogLongFile LogShortFile LogStd = LogDate | LogTime | LogShortFile )
View Source
const ( LogChanSize = 1024000 DefaultCalldepth = 2 )
View Source
const ( AdapterConsole = "console" AdapterFile = "file" AdapterNet = "net" )
Variables ¶
This section is empty.
Functions ¶
func AddAdapter ¶
func CheckLevel ¶
func RemoveAdapter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.