pub trait LogPlugin:
Send
+ Sync
+ Debug {
// Required method
fn get_level_filter(&self) -> &LevelFilter;
// Provided methods
fn name(&self) -> &str { ... }
fn is_enable(&self) -> bool { ... }
fn do_log(&self, id: i64, data: &str) { ... }
fn error(&self, id: i64, data: &str) { ... }
fn warn(&self, id: i64, data: &str) { ... }
fn info(&self, id: i64, data: &str) { ... }
fn debug(&self, id: i64, data: &str) { ... }
fn trace(&self, id: i64, data: &str) { ... }
}
Expand description
log plugin