aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-22 00:17:07 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-22 00:17:07 +0800
commitbdf99e098126880c10dc2ef68623c47ec6f04537 (patch)
treec7264b48d8012701911753565c0a11aea069bbb2 /eth
parentacdc19d1b7b25d6ebd8457f423659f3d112a4a75 (diff)
downloadgo-tangerine-bdf99e098126880c10dc2ef68623c47ec6f04537.tar.gz
go-tangerine-bdf99e098126880c10dc2ef68623c47ec6f04537.tar.zst
go-tangerine-bdf99e098126880c10dc2ef68623c47ec6f04537.zip
Add LogFormat flag
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go3
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