pub struct TracingConfig {
pub level: Option<Level>,
pub format: TracingFormat,
pub timestamps: bool,
pub target: bool,
pub thread_ids: bool,
}Expand description
Tracing configuration.
Fields§
§level: Option<Level>Log level filter.
If None, uses RUST_LOG environment variable or defaults to “info”.
format: TracingFormatOutput format.
timestamps: boolInclude timestamps in output.
target: boolInclude target module names in output.
thread_ids: boolInclude thread IDs in output.
Trait Implementations§
Source§impl Clone for TracingConfig
impl Clone for TracingConfig
Source§fn clone(&self) -> TracingConfig
fn clone(&self) -> TracingConfig
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 TracingConfig
impl Debug for TracingConfig
Auto Trait Implementations§
impl Freeze for TracingConfig
impl RefUnwindSafe for TracingConfig
impl Send for TracingConfig
impl Sync for TracingConfig
impl Unpin for TracingConfig
impl UnwindSafe for TracingConfig
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