Documentation
¶
Index ¶
- func Configure(verbosity int, path *string)
- func LogStack(log Logger, message string, skip int)
- func SetBackend(backend_ Backend)
- func SetMaxLevel(name string, level Level)
- type Backend
- type Level
- type Logger
- type LoggerWrapper
- func (self *LoggerWrapper) Critical(message string)
- func (self *LoggerWrapper) Criticalf(format string, values ...interface{})
- func (self *LoggerWrapper) Debug(message string)
- func (self *LoggerWrapper) Debugf(format string, values ...interface{})
- func (self *LoggerWrapper) Error(message string)
- func (self *LoggerWrapper) Errorf(format string, values ...interface{})
- func (self *LoggerWrapper) Info(message string)
- func (self *LoggerWrapper) Infof(format string, values ...interface{})
- func (self *LoggerWrapper) Notice(message string)
- func (self *LoggerWrapper) Noticef(format string, values ...interface{})
- func (self *LoggerWrapper) Warning(message string)
- func (self *LoggerWrapper) Warningf(format string, values ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBackend ¶
func SetBackend(backend_ Backend)
func SetMaxLevel ¶
Types ¶
type Backend ¶
type Backend interface {
// If "path" is nil will log to stdout, colorized if possible
// The default "verbosity" 0 will log criticals, errors, warnings, and notices.
// "verbosity" 1 will add infos. "verbosity" 2 will add debugs.
// Set "verbostiy" to -1 to disable the log.
Configure(verbosity int, path *string)
SetMaxLevel(name string, level Level)
GetLogger(name string) Logger
}
type Logger ¶
type Logger interface {
Critical(message string)
Criticalf(format string, values ...interface{})
Error(message string)
Errorf(format string, values ...interface{})
Warning(message string)
Warningf(format string, values ...interface{})
Notice(message string)
Noticef(format string, values ...interface{})
Info(message string)
Infof(format string, values ...interface{})
Debug(message string)
Debugf(format string, values ...interface{})
}
func GetLoggerf ¶
type LoggerWrapper ¶
func (*LoggerWrapper) Critical ¶
func (self *LoggerWrapper) Critical(message string)
func (*LoggerWrapper) Criticalf ¶
func (self *LoggerWrapper) Criticalf(format string, values ...interface{})
func (*LoggerWrapper) Debug ¶
func (self *LoggerWrapper) Debug(message string)
func (*LoggerWrapper) Debugf ¶
func (self *LoggerWrapper) Debugf(format string, values ...interface{})
func (*LoggerWrapper) Error ¶
func (self *LoggerWrapper) Error(message string)
func (*LoggerWrapper) Errorf ¶
func (self *LoggerWrapper) Errorf(format string, values ...interface{})
func (*LoggerWrapper) Info ¶
func (self *LoggerWrapper) Info(message string)
func (*LoggerWrapper) Infof ¶
func (self *LoggerWrapper) Infof(format string, values ...interface{})
func (*LoggerWrapper) Notice ¶
func (self *LoggerWrapper) Notice(message string)
func (*LoggerWrapper) Noticef ¶
func (self *LoggerWrapper) Noticef(format string, values ...interface{})
func (*LoggerWrapper) Warning ¶
func (self *LoggerWrapper) Warning(message string)
func (*LoggerWrapper) Warningf ¶
func (self *LoggerWrapper) Warningf(format string, values ...interface{})
Click to show internal directories.
Click to hide internal directories.