aboutsummaryrefslogtreecommitdiffstats
path: root/ethlog
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-25 23:37:38 +0800
committerzelig <viktor.tron@gmail.com>2014-06-25 23:37:38 +0800
commite75f7ae3301bb66ca6d4e9c099c6a14bbe2be418 (patch)
tree1ffd41abf0113630475e03cf447a502bfae2d68d /ethlog
parent4141cc39d0aa3956313aa4aa912ad81858f9bbc3 (diff)
downloaddexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar
dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.gz
dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.bz2
dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.lz
dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.xz
dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.zst
dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.zip
implement DebugDetail loglevel and named print methods
Diffstat (limited to 'ethlog')
-rw-r--r--ethlog/loggers.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethlog/loggers.go b/ethlog/loggers.go
index e656ffbe5..be42c9fb7 100644
--- a/ethlog/loggers.go
+++ b/ethlog/loggers.go
@@ -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()