Documentation
¶
Index ¶
- Constants
- func Configure(verbosity int, path *string)
- func GetWriter() io.Writer
- func LogStack(log Logger, message string, skip int)
- func SetBackend(backend_ Backend)
- func SetMaxLevel(name string, level Level)
- type Backend
- type FullLogger
- func (self FullLogger) Critical(message string)
- func (self FullLogger) Criticalf(format string, values ...interface{})
- func (self FullLogger) Debug(message string)
- func (self FullLogger) Debugf(format string, values ...interface{})
- func (self FullLogger) Error(message string)
- func (self FullLogger) Errorf(format string, values ...interface{})
- func (self FullLogger) Info(message string)
- func (self FullLogger) Infof(format string, values ...interface{})
- func (self FullLogger) Notice(message string)
- func (self FullLogger) Noticef(format string, values ...interface{})
- func (self FullLogger) Warning(message string)
- func (self FullLogger) Warningf(format string, values ...interface{})
- type LazyLogger
- func (self *LazyLogger) Critical(message string)
- func (self *LazyLogger) Criticalf(format string, values ...interface{})
- func (self *LazyLogger) Debug(message string)
- func (self *LazyLogger) Debugf(format string, values ...interface{})
- func (self *LazyLogger) Error(message string)
- func (self *LazyLogger) Errorf(format string, values ...interface{})
- func (self *LazyLogger) Info(message string)
- func (self *LazyLogger) Infof(format string, values ...interface{})
- func (self *LazyLogger) Notice(message string)
- func (self *LazyLogger) Noticef(format string, values ...interface{})
- func (self *LazyLogger) Warning(message string)
- func (self *LazyLogger) Warningf(format string, values ...interface{})
- type Level
- type Logger
- type PartialLogger
- type SubLogger
- func (self SubLogger) Critical(message string)
- func (self SubLogger) Criticalf(format string, values ...interface{})
- func (self SubLogger) Debug(message string)
- func (self SubLogger) Debugf(format string, values ...interface{})
- func (self SubLogger) Error(message string)
- func (self SubLogger) Errorf(format string, values ...interface{})
- func (self SubLogger) Info(message string)
- func (self SubLogger) Infof(format string, values ...interface{})
- func (self SubLogger) Notice(message string)
- func (self SubLogger) Noticef(format string, values ...interface{})
- func (self SubLogger) Warning(message string)
- func (self SubLogger) Warningf(format string, values ...interface{})
Constants ¶
View Source
const DEFAULT_SUBLOGGER_FORMAT = "{%s} %s"
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)
GetWriter() io.Writer
SetMaxLevel(name string, level Level)
GetLogger(name string) Logger
}
type FullLogger ¶ added in v0.1.21
type FullLogger struct {
Logger PartialLogger
}
func (FullLogger) Critical ¶ added in v0.1.21
func (self FullLogger) Critical(message string)
func (FullLogger) Criticalf ¶ added in v0.1.21
func (self FullLogger) Criticalf(format string, values ...interface{})
func (FullLogger) Debug ¶ added in v0.1.21
func (self FullLogger) Debug(message string)
func (FullLogger) Debugf ¶ added in v0.1.21
func (self FullLogger) Debugf(format string, values ...interface{})
func (FullLogger) Error ¶ added in v0.1.21
func (self FullLogger) Error(message string)
func (FullLogger) Errorf ¶ added in v0.1.21
func (self FullLogger) Errorf(format string, values ...interface{})
func (FullLogger) Info ¶ added in v0.1.21
func (self FullLogger) Info(message string)
func (FullLogger) Infof ¶ added in v0.1.21
func (self FullLogger) Infof(format string, values ...interface{})
func (FullLogger) Notice ¶ added in v0.1.21
func (self FullLogger) Notice(message string)
func (FullLogger) Noticef ¶ added in v0.1.21
func (self FullLogger) Noticef(format string, values ...interface{})
func (FullLogger) Warning ¶ added in v0.1.21
func (self FullLogger) Warning(message string)
func (FullLogger) Warningf ¶ added in v0.1.21
func (self FullLogger) Warningf(format string, values ...interface{})
type LazyLogger ¶ added in v0.1.21
func (*LazyLogger) Critical ¶ added in v0.1.21
func (self *LazyLogger) Critical(message string)
func (*LazyLogger) Criticalf ¶ added in v0.1.21
func (self *LazyLogger) Criticalf(format string, values ...interface{})
func (*LazyLogger) Debug ¶ added in v0.1.21
func (self *LazyLogger) Debug(message string)
func (*LazyLogger) Debugf ¶ added in v0.1.21
func (self *LazyLogger) Debugf(format string, values ...interface{})
func (*LazyLogger) Error ¶ added in v0.1.21
func (self *LazyLogger) Error(message string)
func (*LazyLogger) Errorf ¶ added in v0.1.21
func (self *LazyLogger) Errorf(format string, values ...interface{})
func (*LazyLogger) Info ¶ added in v0.1.21
func (self *LazyLogger) Info(message string)
func (*LazyLogger) Infof ¶ added in v0.1.21
func (self *LazyLogger) Infof(format string, values ...interface{})
func (*LazyLogger) Notice ¶ added in v0.1.21
func (self *LazyLogger) Notice(message string)
func (*LazyLogger) Noticef ¶ added in v0.1.21
func (self *LazyLogger) Noticef(format string, values ...interface{})
func (*LazyLogger) Warning ¶ added in v0.1.21
func (self *LazyLogger) Warning(message string)
func (*LazyLogger) Warningf ¶ added in v0.1.21
func (self *LazyLogger) Warningf(format string, values ...interface{})
type Logger ¶
type Logger interface {
PartialLogger
Criticalf(format string, values ...interface{})
Errorf(format string, values ...interface{})
Warningf(format string, values ...interface{})
Noticef(format string, values ...interface{})
Infof(format string, values ...interface{})
Debugf(format string, values ...interface{})
}
func GetLoggerf ¶
type PartialLogger ¶ added in v0.1.21
Click to show internal directories.
Click to hide internal directories.