Struct flexi_logger::FlexiLogger
[−]
[src]
pub struct FlexiLogger { /* fields omitted */ }
Does the logging in the background, is normally not used directly.
This struct is only used explicitly when you want to allow supporting multiple FlexiLogger
instances in a single process.
Methods
impl FlexiLogger
[src]
fn start(
config: LogConfig,
spec: LogSpecification
) -> Result<(), FlexiLoggerError>
[src]
config: LogConfig,
spec: LogSpecification
) -> Result<(), FlexiLoggerError>
Configures and starts the flexi_logger.
fn start_reconfigurable(
config: LogConfig,
spec: LogSpecification
) -> Result<ReconfigurationHandle, FlexiLoggerError>
[src]
config: LogConfig,
spec: LogSpecification
) -> Result<ReconfigurationHandle, FlexiLoggerError>
Configures and starts the flexi_logger, and returns a handle to reconfigure the logger.
fn new(
loglevelspec: Option<String>,
config: LogConfig
) -> Result<FlexiLogger, FlexiLoggerError>
[src]
loglevelspec: Option<String>,
config: LogConfig
) -> Result<FlexiLogger, FlexiLoggerError>
Creates a new FlexiLogger instance based on your configuration and a loglevel specification. Only needed in special setups.