erigon-pulse/tests/helper/init.go
2014-10-17 17:11:34 +02:00

20 lines
358 B
Go

package helper
import (
"log"
"os"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethutil"
)
var Logger ethlog.LogSystem
var Log = ethlog.NewLogger("TEST")
func init() {
Logger = ethlog.NewStdLogSystem(os.Stdout, log.LstdFlags, ethlog.LogLevel(3))
ethlog.AddLogSystem(Logger)
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
}