Add LogFormat flag

This commit is contained in:
Taylor Gerring
2015-01-21 10:17:07 -06:00
parent acdc19d1b7
commit bdf99e0981
4 changed files with 13 additions and 3 deletions

View File

@ -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