pub struct TracingSetup { /* private fields */ }
Expand description
Consolidates the setup of server tracing into a helper
Implementations§
source§impl TracingSetup
impl TracingSetup
pub fn with_file(&mut self, file: Option<File>) -> &mut Self
sourcepub fn with_base_level(&mut self, level: impl Into<String>) -> &mut Self
pub fn with_base_level(&mut self, level: impl Into<String>) -> &mut Self
Sets the log level applied to most modules. Some overly chatty modules
are muted even if this is set to a lower log level, use the RUST_LOG
environment variable to override.
sourcepub fn with_directive(&mut self, directive: &str) -> &mut Self
pub fn with_directive(&mut self, directive: &str) -> &mut Self
Add a filter directive.
Trait Implementations§
source§impl Default for TracingSetup
impl Default for TracingSetup
source§fn default() -> TracingSetup
fn default() -> TracingSetup
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracingSetup
impl RefUnwindSafe for TracingSetup
impl Send for TracingSetup
impl Sync for TracingSetup
impl Unpin for TracingSetup
impl UnwindSafe for TracingSetup
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