aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/log/log.go
diff options
context:
space:
mode:
authorRafael Matias <rafael@skyle.net>2019-06-04 21:35:36 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-06-04 21:35:36 +0800
commit42b81f94adba9aae7f7727951f35e92184b1eedb (patch)
tree73f3004ba6cd922bc54579fe886a7b3cb1df1741 /swarm/log/log.go
parent15f24ff1896835e6ab908b0d17c1cc36b300c408 (diff)
downloadgo-tangerine-42b81f94adba9aae7f7727951f35e92184b1eedb.tar.gz
go-tangerine-42b81f94adba9aae7f7727951f35e92184b1eedb.tar.zst
go-tangerine-42b81f94adba9aae7f7727951f35e92184b1eedb.zip
swarm: code cleanup, move to ethersphere/swarm (#19661)
Diffstat (limited to 'swarm/log/log.go')
-rw-r--r--swarm/log/log.go48
1 files changed, 0 insertions, 48 deletions
diff --git a/swarm/log/log.go b/swarm/log/log.go
deleted file mode 100644
index ce372632e..000000000
--- a/swarm/log/log.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package log
-
-import (
- l "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
-)
-
-const (
- // CallDepth is set to 1 in order to influence to reported line number of
- // the log message with 1 skipped stack frame of calling l.Output()
- CallDepth = 1
-)
-
-// Warn is a convenient alias for log.Warn with stats
-func Warn(msg string, ctx ...interface{}) {
- metrics.GetOrRegisterCounter("warn", nil).Inc(1)
- l.Output(msg, l.LvlWarn, CallDepth, ctx...)
-}
-
-// Error is a convenient alias for log.Error with stats
-func Error(msg string, ctx ...interface{}) {
- metrics.GetOrRegisterCounter("error", nil).Inc(1)
- l.Output(msg, l.LvlError, CallDepth, ctx...)
-}
-
-// Crit is a convenient alias for log.Crit with stats
-func Crit(msg string, ctx ...interface{}) {
- metrics.GetOrRegisterCounter("crit", nil).Inc(1)
- l.Output(msg, l.LvlCrit, CallDepth, ctx...)
-}
-
-// Info is a convenient alias for log.Info with stats
-func Info(msg string, ctx ...interface{}) {
- metrics.GetOrRegisterCounter("info", nil).Inc(1)
- l.Output(msg, l.LvlInfo, CallDepth, ctx...)
-}
-
-// Debug is a convenient alias for log.Debug with stats
-func Debug(msg string, ctx ...interface{}) {
- metrics.GetOrRegisterCounter("debug", nil).Inc(1)
- l.Output(msg, l.LvlDebug, CallDepth, ctx...)
-}
-
-// Trace is a convenient alias for log.Trace with stats
-func Trace(msg string, ctx ...interface{}) {
- metrics.GetOrRegisterCounter("trace", nil).Inc(1)
- l.Output(msg, l.LvlTrace, CallDepth, ctx...)
-}