Struct flexi_logger::FlexiLogger
[−]
[src]
pub struct FlexiLogger { // some fields omitted }
Does the logging. Is only made public to support usecases where more than one FlexiLogger instance are required in a single process.
Methods
impl FlexiLogger
[src]
fn new(loglevelspec: Option<String>, config: LogConfig) -> Result<FlexiLogger, FlexiLoggerError>
Creates a new FlexiLogger instance based on your configuration and a loglevel specification.
fn fl_enabled(&self, level: LogLevel, target: &str) -> bool
Checks if a log line for the specified target and level is to be written really