Struct witchcraft_server::config::runtime::LoggingConfig
source · [−]pub struct LoggingConfig { /* private fields */ }Expand description
Logging configuration.
Implementations
sourceimpl LoggingConfig
impl LoggingConfig
sourcepub fn builder() -> BuilderFinal
pub fn builder() -> BuilderFinal
Returns a new builder.
sourceimpl 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, RandomState>
pub fn loggers(&self) -> &HashMap<String, LevelFilter, RandomState>
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
sourceimpl Clone for LoggingConfig
impl Clone for LoggingConfig
sourcefn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LoggingConfig
impl Debug for LoggingConfig
sourceimpl Default for LoggingConfig
impl Default for LoggingConfig
sourcefn default() -> LoggingConfig
fn default() -> LoggingConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LoggingConfig
impl<'de> Deserialize<'de> for LoggingConfig
sourcefn deserialize<D>(
deserializer: D
) -> Result<LoggingConfig, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<LoggingConfig, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<LoggingConfig> for LoggingConfig
impl PartialEq<LoggingConfig> for LoggingConfig
sourcefn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LoggingConfig) -> bool
fn ne(&self, other: &LoggingConfig) -> bool
This method tests for !=.
sourceimpl Validate for LoggingConfig
impl Validate for LoggingConfig
type Error = ConfigError
type Error = ConfigError
The error returned for an invalid value.
impl StructuralPartialEq for LoggingConfig
Auto Trait Implementations
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more