Documentation ¶
Index ¶
- Variables
- func Alert(format string, v ...interface{})
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func InitLog(logWay string, logFile string, logLevel string, maxdays int64, ...)
- func ParseLevel(logLevel string) int
- func SetLogFile(logWay string, logFile string, maxdays int64, disableLogColor bool, ...)
- func SetLogLevel(logLevel string)
- func Trace(format string, v ...interface{})
- func Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logs.BeeLogger
Log is the under log object
Functions ¶
func ParseLevel ¶
func SetLogFile ¶
func SetLogFile(logWay string, logFile string, maxdays int64, disableLogColor bool, disableTimestamp bool)
SetLogFile to configure log params logWay: file or console
func SetLogLevel ¶
func SetLogLevel(logLevel string)
SetLogLevel set log level, default is warning value: error, warning, info, debug, trace
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.