Crate mlzlog[][src]

A collection of log4rs appenders and configuration for logging in the same style as the Python package mlzlog.

Re-exports

pub use log4rs;

Structs

ConsoleAppender

A log4rs appender that writes ANSI colored log messages to stdout.

PlainConsoleAppender

A log4rs appender that writes uncolored log messages to stdout.

RollingFileAppender

A log4rs appender that writes to daily rolling logfiles with the date used as a suffix in the filename.

Settings

Settings struct for mlzlog::init().

TargetFilter

A log4rs filter for filtering by target.

Functions

init

Initialize default mlzlog settings.

set_thread_prefix

Set logging prefix for the current thread.