pub struct RotatingLogWriter { /* private fields */ }Expand description
A buffered file writer that rotates the log file when it exceeds max_size.
When rotation occurs:
- The current file is flushed and closed.
- Existing rotated files are renamed:
log.N→log.N+1,log→log.1. - Files beyond
max_keepare deleted. - A new empty file is opened at the original path.
Implementations§
Auto Trait Implementations§
impl !Freeze for RotatingLogWriter
impl !RefUnwindSafe for RotatingLogWriter
impl Send for RotatingLogWriter
impl Sync for RotatingLogWriter
impl Unpin for RotatingLogWriter
impl UnsafeUnpin for RotatingLogWriter
impl !UnwindSafe for RotatingLogWriter
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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