pub enum LogDestination {
Console,
File {
path: String,
max_size: Option<usize>,
rotate: bool,
},
Custom(Arc<dyn Fn(&str) + Send + Sync>),
}Expand description
Configuration for where event logs should be sent
Variants§
Console
Log to the console via the standard logging framework
File
Log to a file with optional rotation
Fields
Custom(Arc<dyn Fn(&str) + Send + Sync>)
Custom logging function
Trait Implementations§
Source§impl Clone for LogDestination
impl Clone for LogDestination
Source§fn clone(&self) -> LogDestination
fn clone(&self) -> LogDestination
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogDestination
impl !RefUnwindSafe for LogDestination
impl Send for LogDestination
impl Sync for LogDestination
impl Unpin for LogDestination
impl !UnwindSafe for LogDestination
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