Add log-format option to CLI (#744)

* Add log-format CLI option

* Cargo fmt

* Add log format logic for file logging. Add doc

* Review comment

* Fix compilation errors

* Remove Mutex from logger
This commit is contained in:
pscott
2020-01-06 02:26:30 +01:00
committed by Paul Hauner
parent 55680ab1d3
commit 5427664cf4
4 changed files with 55 additions and 15 deletions

View File

@@ -249,7 +249,7 @@ fn run<T: EthSpec>(env_builder: EnvironmentBuilder<T>, matches: &ArgMatches) {
let env = env_builder
.multi_threaded_tokio_runtime()
.expect("should start tokio runtime")
.async_logger("trace")
.async_logger("trace", None)
.expect("should start null logger")
.build()
.expect("should build env");