Trait fern::FernLog [] [src]

pub trait FernLog: Sync + Send {
    fn log_args(&self, payload: &Arguments, record: &LogRecord);
}

Fern logging trait. This is necessary in order to allow for custom loggers taking in arguments that have already had a custom format applied to them.

The original log::Log trait's log method only accepts messages that were created using the log macros - this trait also accepts records which have had additional formatting applied to them.

Required Methods

Logs a log record, but with the given fmt::Arguments instead of the one contained in the LogRecord.

This has access to the original record, but should ignore the original record.args() and instead use the passed in payload.

Implementors