Struct bdrck::logging::LogFilters [−][src]
LogFilters is a structure which defines the full set of filters a Logger should apply to log messages before actually outputting them.
Implementations
impl LogFilters
[src]
pub fn max_level_for(&self, module_path: &str) -> LevelFilter
[src]
Returns the LevelFilter which should be applied to the given module. If no LogFilter entries apply to the given module, Trace is returned instead, since logging messages are enabled by default in this library. If multiple LevelFilters matched the given module, then the lowest (i.e., most restrictive) LevelFilter is returned.
Trait Implementations
impl FromStr for LogFilters
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<LogFilters>
[src]
Parse a set of log filters from a string.
We assume that the regex contained in log filters will only contain certain characters: those which can appear in valid module names (something like [A-Za-z_][A-Za-z0-9_]* separated by :'s), and maybe some modifiers or etc., like *+?|(){}[].
But, we want a string to contain several filters. So, using the above assumption about what characters will appear in the regex, we'll use the ; character as a separator. So, the final format is:
regex=level;regex=level;...
Auto Trait Implementations
impl RefUnwindSafe for LogFilters
[src]
impl Send for LogFilters
[src]
impl Sync for LogFilters
[src]
impl Unpin for LogFilters
[src]
impl UnwindSafe for LogFilters
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,