Documentation
¶
Overview ¶
log is used for logging
Index ¶
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func LogLevel() int
- func LogToFile()
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetLogLevel(level int)
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogLevel ¶
func LogLevel() int
LogLevel returns the current log level, -1 = no logging, 0 = debug, 1 = info, 2 = warn, 3 = error
func SetLogLevel ¶
func SetLogLevel(level int)
SetLogLevel sets which log level to do, -1 = no logging, 0 = debug, 1 = info, 2 = warn, 3 = error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.