diff options
author | zelig <viktor.tron@gmail.com> | 2014-04-16 20:37:04 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-04-16 20:37:04 +0800 |
commit | f4c13f865634bae6c9cc7cd0478b7765a24fa695 (patch) | |
tree | 9a8ef8086c50d546971fa320ed46abbaf8f18cee /ethereum/config.go | |
parent | 7f0c974008b62115c5c2685dee909b379ca1c6fc (diff) | |
download | go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.tar go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.tar.gz go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.tar.bz2 go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.tar.lz go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.tar.xz go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.tar.zst go-tangerine-f4c13f865634bae6c9cc7cd0478b7765a24fa695.zip |
logfile
- add logfile option to ethereum client flags
- fallback to StdOut
- Logger appended to ethutil.Config.Log loggers
- wrapper uses ethutil.Config.Log
Diffstat (limited to 'ethereum/config.go')
-rw-r--r-- | ethereum/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum/config.go b/ethereum/config.go index e4935dfed..899a17ca6 100644 --- a/ethereum/config.go +++ b/ethereum/config.go @@ -15,8 +15,7 @@ var GenAddr bool var UseSeed bool var ImportKey string var ExportKey bool - -//var UseGui bool +var LogFile string var DataDir string func Init() { @@ -29,6 +28,7 @@ func Init() { flag.BoolVar(&GenAddr, "genaddr", false, "create a new priv/pub key") flag.BoolVar(&ExportKey, "export", false, "export private key") flag.StringVar(&OutboundPort, "p", "30303", "listening port") + flag.StringVar(&LogFile, "logfile", "", "log file (defaults to standard output)") flag.StringVar(&DataDir, "dir", ".ethereum", "ethereum data directory") flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)") flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers") |