Enum wick_logger::LogModifier
source · #[non_exhaustive]pub enum LogModifier {
Not,
GreaterThan,
GreaterThanOrEqualTo,
LessThan,
LessThanOrEqualTo,
Equal,
}
Expand description
Whether to include logs higher, lower, equal, or to not include them at all.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Not
Do not log the associated level.
GreaterThan
Only log events greater than the associated level.
GreaterThanOrEqualTo
Only log events greater than or equal to the associated level.
LessThan
Only log events less than the associated level.
LessThanOrEqualTo
Only log events less than or equal to the associated level.
Equal
Only log events equal to the associated level.
Trait Implementations§
source§impl Clone for LogModifier
impl Clone for LogModifier
source§fn clone(&self) -> LogModifier
fn clone(&self) -> LogModifier
Returns a copy 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 LogModifier
impl Debug for LogModifier
source§impl Default for LogModifier
impl Default for LogModifier
source§impl Display for LogModifier
impl Display for LogModifier
source§impl FromStr for LogModifier
impl FromStr for LogModifier
source§impl PartialEq for LogModifier
impl PartialEq for LogModifier
source§fn eq(&self, other: &LogModifier) -> bool
fn eq(&self, other: &LogModifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LogModifier
impl StructuralPartialEq for LogModifier
Auto Trait Implementations§
impl RefUnwindSafe for LogModifier
impl Send for LogModifier
impl Sync for LogModifier
impl Unpin for LogModifier
impl UnwindSafe for LogModifier
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request