plugeth/tests/helper/init.go

20 lines
366 B
Go
Raw Normal View History

2014-10-14 22:41:00 +00:00
package helper
import (
"log"
"os"
"github.com/ethereum/go-ethereum/ethlog"
"github.com/ethereum/go-ethereum/ethutil"
2014-10-14 22:41:00 +00:00
)
2014-10-15 15:12:26 +00:00
var Logger ethlog.LogSystem
2014-10-16 16:27:05 +00:00
var Log = ethlog.NewLogger("TEST")
2014-10-15 15:12:26 +00:00
2014-10-14 22:41:00 +00:00
func init() {
Logger = ethlog.NewStdLogSystem(os.Stdout, log.LstdFlags, ethlog.InfoLevel)
2014-10-15 15:12:26 +00:00
ethlog.AddLogSystem(Logger)
2014-10-14 22:41:00 +00:00
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
}