pub trait LogAppender: Send {
    fn do_log(&self, record: &FastLogRecord);

    fn do_logs(&self, records: &[FastLogRecord]) { ... }
    fn flush(&self) { ... }
    fn type_name(&self) -> &'static str { ... }
}
Expand description

LogAppender append logs Appender will be running on single main thread,please do_log for new thread or new an Future

Required Methods

this method use one coroutines run this(Multiple appenders share one Appender).

Provided Methods

Batch write log, default loop call do_log function. And of course you can rewrite it

flush or do nothing

Implementors