pub struct TracingConfig { /* private fields */ }Expand description
Global tracing subscriber configuration (env filter + format).
Directive resolution: NESTRS_LOG if set, else RUST_LOG, else TracingConfig::default_directive.
Implementations§
Source§impl TracingConfig
impl TracingConfig
pub fn builder() -> Self
pub fn format(self, format: TracingFormat) -> Self
Sourcepub fn default_directive(self, directive: impl Into<String>) -> Self
pub fn default_directive(self, directive: impl Into<String>) -> Self
Default filter when NESTRS_LOG / RUST_LOG are unset (e.g. "info", "nestrs=debug,info").
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 UnsafeUnpin 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