diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-21 14:26:44 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-21 14:26:44 +0800 |
commit | 9edb9a21bce97594928f8660e8e32df2cb25b74d (patch) | |
tree | a933fa349621d842f361762045eabc96772d147d /logger/log.go | |
parent | 4f5b362bda862b0d77583491d5e04193148a9349 (diff) | |
download | go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.gz go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.bz2 go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.lz go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.xz go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.zst go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.zip |
Add json LogSystem #538
Diffstat (limited to 'logger/log.go')
-rw-r--r-- | logger/log.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/logger/log.go b/logger/log.go index 2dbec86de..fab004d0a 100644 --- a/logger/log.go +++ b/logger/log.go @@ -30,6 +30,8 @@ func New(datadir string, logFile string, logLevel int, logFormat string) LogSyst switch logFormat { case "raw": sys = NewRawLogSystem(writer, 0, LogLevel(logLevel)) + case "json": + sys = NewJsonLogSystem(writer, 0, LogLevel(logLevel)) default: sys = NewStdLogSystem(writer, log.LstdFlags, LogLevel(logLevel)) } |