Documentation ¶
Index ¶
- Constants
- type Logger
- func (l *Logger) Alert(f interface{}, v ...interface{})
- func (l *Logger) Critical(f interface{}, v ...interface{})
- func (l *Logger) Debug(f interface{}, v ...interface{})
- func (l *Logger) Emergency(f interface{}, v ...interface{})
- func (l *Logger) Error(f interface{}, v ...interface{})
- func (l *Logger) Info(f interface{}, v ...interface{})
- func (l *Logger) Logger() *logs.BeeLogger
- func (l *Logger) Notice(f interface{}, v ...interface{})
- func (l *Logger) Print(v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) Println(v ...interface{})
- func (l *Logger) Warn(f interface{}, v ...interface{})
Constants ¶
View Source
const ( AdapterConsole = "console" AdapterFile = "file" AdapterMultiFile = "multifile" AdapterMail = "smtp" AdapterConn = "conn" AdapterEs = "es" AdapterJianLiao = "jianliao" AdapterSlack = "slack" AdapterAliLS = "alils" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger
func NewLogger ¶
NewLogger returns a new BeeLogger. channelLen means the number of messages in chan(used where asynchronous is true). if the buffering chan is full, logger adapters write to file or other way.
func (*Logger) Alert ¶
func (l *Logger) Alert(f interface{}, v ...interface{})
注意 Alert logs a message at alert level.
func (*Logger) Critical ¶
func (l *Logger) Critical(f interface{}, v ...interface{})
严重 Critical logs a message at critical level.
func (*Logger) Debug ¶
func (l *Logger) Debug(f interface{}, v ...interface{})
调试 Debug logs a message at debug level.
func (*Logger) Emergency ¶
func (l *Logger) Emergency(f interface{}, v ...interface{})
紧急 Emergency logs a message at emergency level.
func (*Logger) Error ¶
func (l *Logger) Error(f interface{}, v ...interface{})
错误 Error logs a message at error level.
func (*Logger) Info ¶
func (l *Logger) Info(f interface{}, v ...interface{})
信息 Info compatibility alias for Warning()
Click to show internal directories.
Click to hide internal directories.