diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-22 00:17:07 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-22 00:17:07 +0800 |
commit | bdf99e098126880c10dc2ef68623c47ec6f04537 (patch) | |
tree | c7264b48d8012701911753565c0a11aea069bbb2 /eth | |
parent | acdc19d1b7b25d6ebd8457f423659f3d112a4a75 (diff) | |
download | dexon-bdf99e098126880c10dc2ef68623c47ec6f04537.tar.gz dexon-bdf99e098126880c10dc2ef68623c47ec6f04537.tar.zst dexon-bdf99e098126880c10dc2ef68623c47ec6f04537.zip |
Add LogFormat flag
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index c3c7d1287..da75da051 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -29,6 +29,7 @@ type Config struct { DataDir string LogFile string LogLevel int + LogFormat string KeyRing string MaxPeers int @@ -80,7 +81,7 @@ type Ethereum struct { func New(config *Config) (*Ethereum, error) { // Boostrap database - logger := ethlogger.New(config.DataDir, config.LogFile, config.LogLevel) + logger := ethlogger.New(config.DataDir, config.LogFile, config.LogLevel, config.LogFormat) db, err := ethdb.NewLDBDatabase("blockchain") if err != nil { return nil, err |