aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/init.go
blob: 5f95dfc2fd1643fca712975fa77006e946bd77be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package helper

import (
    "log"
    "os"

    "github.com/ethereum/eth-go/ethlog"
    "github.com/ethereum/eth-go/ethutil"
)

var Logger ethlog.LogSystem

func init() {
    Logger = ethlog.NewStdLogSystem(os.Stdout, log.LstdFlags, ethlog.LogLevel(4))
    ethlog.AddLogSystem(Logger)

    ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
}