pub enum Rotation {
Daily,
Hourly,
Minutely,
Never,
}Expand description
Time-based rotation period for log files.
This controls how often new log files are created.
§Example
use tauri_plugin_tracing::{Builder, Rotation};
Builder::new()
.with_file_logging()
.with_rotation(Rotation::Daily) // Create new file each day
.build::<tauri::Wry>();Variants§
Daily
Rotate logs daily. Files are named app.YYYY-MM-DD.log.
Hourly
Rotate logs hourly. Files are named app.YYYY-MM-DD-HH.log.
Minutely
Rotate logs every minute. Files are named app.YYYY-MM-DD-HH-MM.log.
Never
Never rotate. All logs go to app.log.
Trait Implementations§
impl Copy for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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