op-geth/tests/helper/init.go

20 lines
373 B
Go
Raw Normal View History

2014-10-15 00:41:00 +02:00
package helper
import (
"log"
"os"
"github.com/ethereum/go-ethereum/ethutil"
2014-10-31 18:40:32 +01:00
logpkg "github.com/ethereum/go-ethereum/logger"
2014-10-15 00:41:00 +02:00
)
2014-10-31 18:40:32 +01:00
var Logger logpkg.LogSystem
var Log = logpkg.NewLogger("TEST")
2014-10-15 17:12:26 +02:00
2014-10-15 00:41:00 +02:00
func init() {
2014-10-31 18:40:32 +01:00
Logger = logpkg.NewStdLogSystem(os.Stdout, log.LstdFlags, logpkg.InfoLevel)
logpkg.AddLogSystem(Logger)
2014-10-15 00:41:00 +02:00
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
}