pub enum TimezoneStrategy {
UseUtc,
UseLocal,
}Expand description
The timezone used to compute the current time for log message timestamps and rotated log file names.
Variants§
UseUtc
Use UTC time.
UseLocal
Use the local timezone. Falls back to UTC if the local offset cannot be determined.
Implementations§
Source§impl TimezoneStrategy
impl TimezoneStrategy
Sourcepub fn get_now(&self) -> OffsetDateTime
pub fn get_now(&self) -> OffsetDateTime
Returns the current time according to this strategy.
Trait Implementations§
Source§impl Clone for TimezoneStrategy
impl Clone for TimezoneStrategy
Auto Trait Implementations§
impl Freeze for TimezoneStrategy
impl RefUnwindSafe for TimezoneStrategy
impl Send for TimezoneStrategy
impl Sync for TimezoneStrategy
impl Unpin for TimezoneStrategy
impl UnsafeUnpin for TimezoneStrategy
impl UnwindSafe for TimezoneStrategy
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