Function file_per_thread_logger::initialize [−][src]
pub fn initialize(filename_prefix: &str)
Initializes the current process/thread with a logger, parsing the RUST_LOG environment variables to set the logging level filter and/or directives to set a filter by module name, following the usual env_logger conventions.
Must be called on every running thread, or else logging will panic the first time it’s used.
use file_per_thread_logger::initialize; initialize("log-file-prefix");