pub struct LocalRfc3339Timer;Expand description
全局人类可读日志时间戳:使用系统本地时区并输出 RFC3339 offset。
默认 tracing formatter 使用 UTC (Z);本项目排障通常发生在 Asia/Shanghai /
Asia/Hong_Kong 时区,UTC 时间会让用户对照真机事件时多一层换算。这里不写死
+08:00,而是读取 OS local timezone;部署到其他地区时仍按当地日志习惯输出。
Trait Implementations§
Source§impl Clone for LocalRfc3339Timer
impl Clone for LocalRfc3339Timer
Source§fn clone(&self) -> LocalRfc3339Timer
fn clone(&self) -> LocalRfc3339Timer
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 LocalRfc3339Timer
impl Debug for LocalRfc3339Timer
Source§impl FormatTime for LocalRfc3339Timer
impl FormatTime for LocalRfc3339Timer
Source§fn format_time(&self, w: &mut Writer<'_>) -> Result
fn format_time(&self, w: &mut Writer<'_>) -> Result
Measure and write out the current time. Read more
impl Copy for LocalRfc3339Timer
Auto Trait Implementations§
impl Freeze for LocalRfc3339Timer
impl RefUnwindSafe for LocalRfc3339Timer
impl Send for LocalRfc3339Timer
impl Sync for LocalRfc3339Timer
impl Unpin for LocalRfc3339Timer
impl UnsafeUnpin for LocalRfc3339Timer
impl UnwindSafe for LocalRfc3339Timer
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