mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
414 B
20 lines
414 B
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", "")
|
|
ethutil.Config.Db, _ = NewMemDatabase()
|
|
}
|
|
|