pub struct TracingOptions {
pub format: LogFormat,
pub level: Option<String>,
pub modules: HashMap<String, String>,
}Expand description
Options for initialising the tracing subscriber.
Fields§
§format: LogFormatOutput format (text or json).
level: Option<String>Base log level (overridden by RUST_LOG env var).
modules: HashMap<String, String>Per-module log level overrides.
Trait Implementations§
Source§impl Clone for TracingOptions
impl Clone for TracingOptions
Source§fn clone(&self) -> TracingOptions
fn clone(&self) -> TracingOptions
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 TracingOptions
impl Debug for TracingOptions
Source§impl Default for TracingOptions
impl Default for TracingOptions
Source§fn default() -> TracingOptions
fn default() -> TracingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracingOptions
impl RefUnwindSafe for TracingOptions
impl Send for TracingOptions
impl Sync for TracingOptions
impl Unpin for TracingOptions
impl UnsafeUnpin for TracingOptions
impl UnwindSafe for TracingOptions
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