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