pub struct LoggingConfig { /* private fields */ }Expand description
Logging configuration.
Implementations§
Source§impl LoggingConfig
impl LoggingConfig
Sourcepub fn level(&self) -> LevelFilter
pub fn level(&self) -> LevelFilter
Returns the logging verbosity filter applied globally for all service logs.
Defaults to LevelFilter::Info.
Sourcepub fn loggers(&self) -> &HashMap<String, LevelFilter>
pub fn loggers(&self) -> &HashMap<String, LevelFilter>
Returns a map of verbosity filter overides applied to specific targets.
Sourcepub fn trace_rate(&self) -> f32
pub fn trace_rate(&self) -> f32
Returns the rate at which new traces will be sampled between 0 and 1, inclusive.
This only applies to fresh traces - Witchcraft will respect sampling decisions made by upstream services for a given request.
Defaults to 0.05%.
Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
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 LoggingConfig
impl Debug for LoggingConfig
Source§impl Default for LoggingConfig
impl Default for LoggingConfig
Source§impl<'de> Deserialize<'de> for LoggingConfig
impl<'de> Deserialize<'de> for LoggingConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoggingConfig
impl PartialEq for LoggingConfig
Source§impl Validate for LoggingConfig
impl Validate for LoggingConfig
impl StructuralPartialEq for LoggingConfig
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnsafeUnpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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