From c86e4e7db4d933d524f9ab32161663f04566e148 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 19 Jun 2018 21:07:17 -0300 Subject: [PATCH] Add documentation for Runtime::init_logger() --- lib/core/libimagrt/src/runtime.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/libimagrt/src/runtime.rs b/lib/core/libimagrt/src/runtime.rs index ed1bdc7e..4e72404d 100644 --- a/lib/core/libimagrt/src/runtime.rs +++ b/lib/core/libimagrt/src/runtime.rs @@ -319,6 +319,12 @@ impl<'a> Runtime<'a> { } /// Initialize the internal logger + /// + /// If the environment variable "IMAG_LOG_ENV" is set, this simply + /// initializes a env-logger instance. Errors are ignored in this case. + /// If the environment variable is not set, this initializes the internal imag logger. On + /// error, this exits (as there is nothing we can do about that) + /// fn init_logger(matches: &ArgMatches, config: Option<&Value>) { use log::set_max_level; use log::set_boxed_logger;