aboutsummaryrefslogblamecommitdiffstats
path: root/tests/helper/init.go
blob: df98b9e422b2c7b2295ab212063f430a3005bef9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10





              
                                                 
                                                       

 

                                  
 
             

                                                                                   


                                                          
package helper

import (
    "log"
    "os"

    "github.com/ethereum/go-ethereum/ethutil"
    logpkg "github.com/ethereum/go-ethereum/logger"
)

var Logger logpkg.LogSystem
var Log = logpkg.NewLogger("TEST")

func init() {
    Logger = logpkg.NewStdLogSystem(os.Stdout, log.LstdFlags, logpkg.InfoLevel)
    logpkg.AddLogSystem(Logger)

    ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
}