Trait fast_log::appender::LogAppender
source · [−]pub trait LogAppender: Send {
fn do_logs(&self, records: &[FastLogRecord]);
fn flush(&self) { ... }
}
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
sourcefn do_logs(&self, records: &[FastLogRecord])
fn do_logs(&self, records: &[FastLogRecord])
Batch write log, or do nothing