diff options
author | zelig <viktor.tron@gmail.com> | 2014-06-25 23:37:38 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-06-25 23:37:38 +0800 |
commit | e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418 (patch) | |
tree | 1ffd41abf0113630475e03cf447a502bfae2d68d /ethlog/loggers.go | |
parent | 4141cc39d0aa3956313aa4aa912ad81858f9bbc3 (diff) | |
download | dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.gz dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.tar.zst dexon-e75f7ae3301bb66ca6d4e9c099c6a14bbe2be418.zip |
implement DebugDetail loglevel and named print methods
Diffstat (limited to 'ethlog/loggers.go')
-rw-r--r-- | ethlog/loggers.go | 9 |
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() |