Function log4rs::init_file
[−]
[src]
pub fn init_file<P: AsRef<Path>>(path: P, deserializers: Deserializers) -> Result<(), Error>
Initializes the global logger as a log4rs logger configured via a file.
Configuration is read from a file located at the provided path on the
filesystem and appenders are created from the provided Deserializers
.
Any nonfatal errors encountered when processing the configuration are reported to stderr.