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