implement DebugDetail loglevel and named print methods

This commit is contained in:
zelig 2014-06-25 16:37:38 +01:00
parent 4141cc39d0
commit e75f7ae330

View File

@ -49,6 +49,7 @@ const (
WarnLevel
InfoLevel
DebugLevel
DebugDetailLevel
)
// log messages are dispatched to log writers
@ -123,6 +124,10 @@ func (logger *Logger) Debugln(v...interface{}) {
logger.sendln(DebugLevel, v...)
}
func (logger *Logger) DebugDetailln(v...interface{}) {
logger.sendln(DebugDetailLevel, v...)
}
func (logger *Logger) Errorf(format string, v...interface{}) {
logger.sendf(ErrorLevel, format, v...)
}
@ -139,6 +144,10 @@ func (logger *Logger) Debugf(format string, v...interface{}) {
logger.sendf(DebugLevel, format, v...)
}
func (logger *Logger) DebugDetailf(format string, v...interface{}) {
logger.sendf(DebugDetailLevel, format, v...)
}
func (logger *Logger) Fatalln (v...interface{}) {
logger.sendln(ErrorLevel, v...)
Flush()