Documentation ¶
Index ¶
- Variables
- func Debug(params ...interface{})
- func Debugf(format string, params ...interface{})
- func Error(params ...interface{})
- func Errorf(format string, params ...interface{})
- func Failure(params ...interface{})
- func Failuref(format string, params ...interface{})
- func Info(params ...interface{})
- func Infof(format string, params ...interface{})
- func SetFlags(flag int)
- func Warn(params ...interface{})
- func Warnf(format string, params ...interface{})
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var Color bool = true
View Source
var Flags = log.Lshortfile | log.Ltime
Do not print date, but print file name and line
Functions ¶
func Failure ¶
func Failure(params ...interface{})
Failure behaves as all other logging functions, then panics with the given parameters
Types ¶
type LogLevel ¶
type LogLevel uint
var CurLevel LogLevel
Curlevel represents the level of logging below which no log will be printed. The maximum available is LeveL_Failure, which will only print critical errors. The default is the lowest one, Level_Debug, which will print everything. The higher the loglevel, the lower the verbosity
func (LogLevel) ShortString ¶
Click to show internal directories.
Click to hide internal directories.