pub struct Writer { /* private fields */ }Expand description
A writer for buffering the log and writing them into the suitable files.
Implementations§
source§impl Writer
impl Writer
sourcepub fn new(
dir_path: &str,
detailed_time: bool,
log_level: Option<LogLevel>,
single_length_buffer: Option<usize>,
prefix: Option<&str>
) -> Writer
pub fn new( dir_path: &str, detailed_time: bool, log_level: Option<LogLevel>, single_length_buffer: Option<usize>, prefix: Option<&str> ) -> Writer
Customize and initialize the log writer.
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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