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<FlexiLoggerFlexiLoggerError>

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

Trait Implementations

impl Log for FlexiLogger
[src]

fn enabled(&self, metadata: &LogMetadata) -> bool

Determines if a log message with the specified metadata would be logged. Read more

fn log(&self, record: &LogRecord)

Logs the LogRecord. Read more