Struct tracing_appender::rolling::Rotation [−][src]
pub struct Rotation(_);
Expand description
Defines a fixed period for rolling of a log file.
To use a Rotation
, pick one of the following options:
Minutely Rotation
use tracing_appender::rolling::Rotation;
let rotation = tracing_appender::rolling::Rotation::MINUTELY;
Hourly Rotation
use tracing_appender::rolling::Rotation;
let rotation = tracing_appender::rolling::Rotation::HOURLY;
Daily Rotation
use tracing_appender::rolling::Rotation;
let rotation = tracing_appender::rolling::Rotation::DAILY;
No Rotation
use tracing_appender::rolling::Rotation;
let rotation = tracing_appender::rolling::Rotation::NEVER;
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rotation
impl UnwindSafe for Rotation
Blanket Implementations
Mutably borrows from an owned value. Read more