Documentation ¶
Index ¶
- Constants
- Variables
- func Alert(v ...interface{})
- func Critical(v ...interface{})
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Emergency(v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Informational(v ...interface{})
- func Notice(v ...interface{})
- func SetLevel(l int)
- func SetLogFuncCall(b bool)
- func SetLogger(adaptername string, config string) error
- func Trace(v ...interface{})
- func Warn(v ...interface{})
- func Warning(v ...interface{})
- func Warningf(format string, v ...interface{})
- type OWLogger
- func (logger *OWLogger) Alert(v ...interface{})
- func (logger *OWLogger) Critical(v ...interface{})
- func (logger *OWLogger) Debug(v ...interface{})
- func (logger *OWLogger) Debugf(format string, v ...interface{})
- func (logger *OWLogger) Emergency(v ...interface{})
- func (logger *OWLogger) Error(v ...interface{})
- func (logger *OWLogger) Errorf(format string, v ...interface{})
- func (logger *OWLogger) Info(v ...interface{})
- func (logger *OWLogger) Infof(format string, v ...interface{})
- func (logger *OWLogger) Informational(v ...interface{})
- func (logger *OWLogger) Notice(v ...interface{})
- func (logger *OWLogger) SetLevel(l int)
- func (logger *OWLogger) SetLogFuncCall(b bool)
- func (logger *OWLogger) SetLogger(adaptername string, config string) error
- func (logger *OWLogger) SetPrefix(prefix string)
- func (logger *OWLogger) Trace(v ...interface{})
- func (logger *OWLogger) Warn(v ...interface{})
- func (logger *OWLogger) Warning(v ...interface{})
- func (logger *OWLogger) Warningf(format string, v ...interface{})
Constants ¶
const ( LevelEmergency = iota LevelAlert LevelCritical LevelError LevelWarning LevelNotice LevelInformational LevelDebug )
Log levels to control the logging output.
Variables ¶
var Std = newLogger("")
BeeLogger references the used application logger.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Format & debug logs a message at debug level.
func Errorf ¶
func Errorf(format string, v ...interface{})
format & Error logs a message at error level.
func Informational ¶
func Informational(v ...interface{})
Informational logs a message at info level.
Types ¶
type OWLogger ¶
type OWLogger struct {
Std *logger
}
func (*OWLogger) Alert ¶
func (logger *OWLogger) Alert(v ...interface{})
Alert logs a message at alert level.
func (*OWLogger) Critical ¶
func (logger *OWLogger) Critical(v ...interface{})
Critical logs a message at critical level.
func (*OWLogger) Debug ¶
func (logger *OWLogger) Debug(v ...interface{})
Debug logs a message at debug level.
func (*OWLogger) Emergency ¶
func (logger *OWLogger) Emergency(v ...interface{})
Emergency logs a message at emergency level.
func (*OWLogger) Error ¶
func (logger *OWLogger) Error(v ...interface{})
Error logs a message at error level.
func (*OWLogger) Info ¶
func (logger *OWLogger) Info(v ...interface{})
Info compatibility alias for Warning()
func (*OWLogger) Informational ¶
func (logger *OWLogger) Informational(v ...interface{})
Informational logs a message at info level.
func (*OWLogger) Notice ¶
func (logger *OWLogger) Notice(v ...interface{})
Notice logs a message at notice level.
func (*OWLogger) SetLogFuncCall ¶
SetLogFuncCall set the CallDepth, default is 3
func (*OWLogger) Trace ¶
func (logger *OWLogger) Trace(v ...interface{})
Trace logs a message at trace level. compatibility alias for Warning()
func (*OWLogger) Warn ¶
func (logger *OWLogger) Warn(v ...interface{})
Warn compatibility alias for Warning()