Trait bp3d_logger::handler::Handler
source · pub trait Handler: Send {
// Required methods
fn install(&mut self, enable_stdout: &Flag);
fn write(&mut self, msg: &LogMsg);
fn flush(&mut self);
}Expand description
The main handler trait.
Required Methods§
sourcefn install(&mut self, enable_stdout: &Flag)
fn install(&mut self, enable_stdout: &Flag)
Called when the handler is installed in the async logging thread.
§Arguments
enable_stdout: boolean flag to know if printing to stdout is allowed.