aboutsummaryrefslogtreecommitdiffstats
path: root/logger
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-22 00:18:46 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-22 00:18:46 +0800
commit41d80ba17bac2d6cfefb8a1c6206fe1ccee04d1d (patch)
treef251dd6e0c3c25dbc057a55048a6527846e9c389 /logger
parentbdf99e098126880c10dc2ef68623c47ec6f04537 (diff)
downloadgo-tangerine-41d80ba17bac2d6cfefb8a1c6206fe1ccee04d1d.tar.gz
go-tangerine-41d80ba17bac2d6cfefb8a1c6206fe1ccee04d1d.tar.zst
go-tangerine-41d80ba17bac2d6cfefb8a1c6206fe1ccee04d1d.zip
Add JsonLevel log level
Diffstat (limited to 'logger')
-rw-r--r--logger/loggers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/logger/loggers.go b/logger/loggers.go
index de9dfc095..497060fdb 100644
--- a/logger/loggers.go
+++ b/logger/loggers.go
@@ -30,7 +30,7 @@ type message struct {
msg string
}
-type LogLevel uint8
+type LogLevel uint32
const (
// Standard log levels
@@ -40,6 +40,7 @@ const (
InfoLevel
DebugLevel
DebugDetailLevel
+ JsonLevel = 1000
)
// A Logger prints messages prefixed by a given tag. It provides named