Documentation ¶
Index ¶
- Variables
- func AppendListener(l LogListener)
- func CallLogListeners(log string)
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func InitLog(logWay string, logFile string, logLevel string, maxdays int64, ...)
- 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{})
- type LogListener
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logs.BeeLogger
Log is the under log object
Functions ¶
func AppendListener ¶
func AppendListener(l LogListener)
func CallLogListeners ¶
func CallLogListeners(log string)
func SetLogFile ¶
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 ¶
type LogListener ¶
Click to show internal directories.
Click to hide internal directories.