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

import (
    "log"
    "os"

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

var Logger ethlog.LogSystem
var Log = ethlog.NewLogger("TEST")

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

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