2014-10-14 22:41:00 +00:00
|
|
|
package helper
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
2014-10-23 13:01:27 +00:00
|
|
|
"github.com/ethereum/go-ethereum/ethutil"
|
2014-10-31 17:40:32 +00:00
|
|
|
logpkg "github.com/ethereum/go-ethereum/logger"
|
2014-10-14 22:41:00 +00:00
|
|
|
)
|
|
|
|
|
2014-10-31 17:40:32 +00:00
|
|
|
var Logger logpkg.LogSystem
|
|
|
|
var Log = logpkg.NewLogger("TEST")
|
2014-10-15 15:12:26 +00:00
|
|
|
|
2014-10-14 22:41:00 +00:00
|
|
|
func init() {
|
2014-10-31 17:40:32 +00:00
|
|
|
Logger = logpkg.NewStdLogSystem(os.Stdout, log.LstdFlags, logpkg.InfoLevel)
|
|
|
|
logpkg.AddLogSystem(Logger)
|
2014-10-14 22:41:00 +00:00
|
|
|
|
|
|
|
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
|
2014-11-04 15:43:02 +00:00
|
|
|
ethutil.Config.Db, _ = NewMemDatabase()
|
2014-10-14 22:41:00 +00:00
|
|
|
}
|