Add documentation for Runtime::init_logger()

This commit is contained in:
Matthias Beyer 2018-06-19 21:07:17 -03:00
parent 6ba87a58d1
commit c86e4e7db4

View file

@ -319,6 +319,12 @@ impl<'a> Runtime<'a> {
} }
/// Initialize the internal logger /// 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>) { fn init_logger(matches: &ArgMatches, config: Option<&Value>) {
use log::set_max_level; use log::set_max_level;
use log::set_boxed_logger; use log::set_boxed_logger;