#[non_exhaustive]pub struct FastraceDiagnostic {}Expand description
A diagnostic that enriches log records with trace context provided by the Fastrace library.
Output format:
2025-01-10T15:22:37.868815+08:00 ERROR fastrace: fastrace.rs:39 Hello syslog error! trace_id=37f9c45f918cbb477089afb0d7162e7e
2025-01-10T15:22:37.868890+08:00 WARN fastrace: fastrace.rs:40 Hello syslog warn! trace_id=37f9c45f918cbb477089afb0d7162e7e
2025-01-10T15:22:37.868921+08:00 INFO fastrace: fastrace.rs:41 Hello syslog info! trace_id=37f9c45f918cbb477089afb0d7162e7e
2025-01-10T15:22:37.868949+08:00 DEBUG fastrace: fastrace.rs:42 Hello syslog debug! trace_id=37f9c45f918cbb477089afb0d7162e7e
2025-01-10T15:22:37.868976+08:00 TRACE fastrace: fastrace.rs:43 Hello syslog trace! trace_id=37f9c45f918cbb477089afb0d7162e7e§Example
use logforth_diagnostic_fastrace::FastraceDiagnostic;
let diagnostic = FastraceDiagnostic::default();Trait Implementations§
Source§impl Clone for FastraceDiagnostic
impl Clone for FastraceDiagnostic
Source§fn clone(&self) -> FastraceDiagnostic
fn clone(&self) -> FastraceDiagnostic
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 FastraceDiagnostic
impl Debug for FastraceDiagnostic
Source§impl Default for FastraceDiagnostic
impl Default for FastraceDiagnostic
Source§fn default() -> FastraceDiagnostic
fn default() -> FastraceDiagnostic
Returns the “default value” for a type. Read more
Source§impl Diagnostic for FastraceDiagnostic
impl Diagnostic for FastraceDiagnostic
impl Copy for FastraceDiagnostic
Auto Trait Implementations§
impl Freeze for FastraceDiagnostic
impl RefUnwindSafe for FastraceDiagnostic
impl Send for FastraceDiagnostic
impl Sync for FastraceDiagnostic
impl Unpin for FastraceDiagnostic
impl UnwindSafe for FastraceDiagnostic
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