pub fn new(log_level: LevelFilter, config: Config, writable: W) -> Box<WriteLogger<W>> {
        Box::new(WriteLogger {
            level: log_level,
            config: config,
            writable: Mutex::new(writable),
        })
    }
/// allows to create a new logger, that can be independently used, no matter what is globally set.
///
/// no macros are provided for this case and you probably
/// dont want to use this function, but `init()`, if you dont want to build a `CombinedLogger`.
///
/// Takes the desired `Level`, `Config` and `Write` struct as arguments. They cannot be changed later on.
///
/// # Examples
/// ```
/// # extern crate baselog;
/// # use baselog::*;
/// # use std::fs::File;
/// # fn main() {
/// let file_logger = WriteLogger::new(LevelFilter::Info, Config::default(), File::create("my_rust_bin.log").unwrap());
/// # }
/// ```
allows to create a new logger, that can be independently used, no matter what is globally set.
no macros are provided for this case and you probably
dont want to use this function, but `init()`, if you dont want to build a `CombinedLogger`.


allows to create a new logger that can be independently used no matter what is globally set . no macros are provided for this case and you probably dont want to use this function but ` init () ` if you dont want to build a ` CombinedLogger ` .
pub fn new(log_level: LevelFilter, config: Config, writable: W) -> Box<WriteLogger<W>> {
        Box::new(WriteLogger {
            level: log_level,
            config: config,
            writable: Mutex::new(writable),
        })
    }
pub fn new ( log_level : LevelFilter , config : Config , writable : W ) -> Box < WriteLogger < W > > { Box :: new ( WriteLogger { level : log_level , config : config , writable : Mutex :: new ( writable ) , } ) }
allows to create a new logger, that can be independently used, no matter what is globally set.
allows to create a new logger that can be independently used no matter what is globally set .
log_level
LevelFilter
config
Config
writable
W
examples
None
extern crate baselog;
None
use baselog::*;
None
use std::fs::file;
None
fn main() {
let file_logger = WriteLogger::new(LevelFilter::Info, Config::default(), File::create("my_rust_bin.log").unwrap()).
let file_logger = WriteLogger :: new ( LevelFilter :: Info Config :: default () File :: create ( " my_rust_bin . log " ) . unwrap () ) .
}
None