pub enum TimezoneStrategy {
Utc,
Local,
}Expand description
Timezone strategy for log timestamps.
Controls whether log timestamps are displayed in UTC or local time.
§Example
use tauri_plugin_tracing::{Builder, TimezoneStrategy};
Builder::new()
.with_timezone_strategy(TimezoneStrategy::Local)
.build::<tauri::Wry>();Variants§
Utc
Use UTC timestamps (e.g., 2024-01-15T14:30:00.000000Z).
This is the default and most reliable option.
Local
Use local timestamps with the system’s timezone offset.
The offset is captured when the logger is initialized. If the offset cannot be determined (e.g., on some Unix systems with multiple threads), falls back to UTC.
Trait Implementations§
Source§impl Clone for TimezoneStrategy
impl Clone for TimezoneStrategy
Source§fn clone(&self) -> TimezoneStrategy
fn clone(&self) -> TimezoneStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimezoneStrategy
impl Debug for TimezoneStrategy
Source§impl Default for TimezoneStrategy
impl Default for TimezoneStrategy
Source§fn default() -> TimezoneStrategy
fn default() -> TimezoneStrategy
Returns the “default value” for a type. Read more
impl Copy 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 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