Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
- type Logger
Constants ¶
View Source
const ( LevelInfo uint = iota LevelError LevelWarning LevelDebug )
View Source
const ( PrefixInfo = "INF: " PrefixError = "ERR: " PrefixWarning = "WRN: " PrefixDebug = "DBG: " PrefixFatal = "ERR: " PrefixPanic = "PNC: " )
Variables ¶
View Source
var DefaultLogger = &Logger{ Level: LevelError, Output: os.Stdout, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.