pub struct Builder {
pub force: bool,
pub rotation_signals: Vec<i32>,
pub panic: bool,
pub continue_when_panic: bool,
pub sinks: Vec<Box<dyn SinkConfigTrait>>,
}Expand description
Global config to setup logger See crate::recipe for usage
Fields§
§force: boolForce re-initialize GlobalLogger even it exists, useful to setup different logger in multiple types of test cases
rotation_signals: Vec<i32>Listen for signal of log-rotate
panic: boolHookup to log error when panic
continue_when_panic: boolWhether to exit program after panic
sinks: Vec<Box<dyn SinkConfigTrait>>Different types of log sink
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more