implement DebugDetail loglevel and named print methods
This commit is contained in:
parent
4141cc39d0
commit
e75f7ae330
@ -49,6 +49,7 @@ const (
|
|||||||
WarnLevel
|
WarnLevel
|
||||||
InfoLevel
|
InfoLevel
|
||||||
DebugLevel
|
DebugLevel
|
||||||
|
DebugDetailLevel
|
||||||
)
|
)
|
||||||
|
|
||||||
// log messages are dispatched to log writers
|
// log messages are dispatched to log writers
|
||||||
@ -123,6 +124,10 @@ func (logger *Logger) Debugln(v...interface{}) {
|
|||||||
logger.sendln(DebugLevel, v...)
|
logger.sendln(DebugLevel, v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) DebugDetailln(v...interface{}) {
|
||||||
|
logger.sendln(DebugDetailLevel, v...)
|
||||||
|
}
|
||||||
|
|
||||||
func (logger *Logger) Errorf(format string, v...interface{}) {
|
func (logger *Logger) Errorf(format string, v...interface{}) {
|
||||||
logger.sendf(ErrorLevel, format, v...)
|
logger.sendf(ErrorLevel, format, v...)
|
||||||
}
|
}
|
||||||
@ -139,6 +144,10 @@ func (logger *Logger) Debugf(format string, v...interface{}) {
|
|||||||
logger.sendf(DebugLevel, format, v...)
|
logger.sendf(DebugLevel, format, v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) DebugDetailf(format string, v...interface{}) {
|
||||||
|
logger.sendf(DebugDetailLevel, format, v...)
|
||||||
|
}
|
||||||
|
|
||||||
func (logger *Logger) Fatalln (v...interface{}) {
|
func (logger *Logger) Fatalln (v...interface{}) {
|
||||||
logger.sendln(ErrorLevel, v...)
|
logger.sendln(ErrorLevel, v...)
|
||||||
Flush()
|
Flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user