Trait fast_log::appender::LogAppender
source · [−]pub trait LogAppender: Send {
fn do_log(&self, record: &FastLogRecord);
fn do_logs(&self, records: &[Arc<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
fn do_log(&self, record: &FastLogRecord)
fn do_log(&self, record: &FastLogRecord)
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