Trait fast_log::appender::LogAppender
source · [−]pub trait LogAppender: Send {
fn do_log(&self, record: &FastLogRecord);
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). so. if you want access the network, you can launch a coroutine using go! (| | {});