Struct log4rs::filter::threshold::ThresholdFilterDeserializer
[−]
[src]
pub struct ThresholdFilterDeserializer;
A deserializer for the ThresholdFilter
.
Configuration
kind: threshold
# The threshold log level to filter at. Required
level: warn
Trait Implementations
impl Deserialize for ThresholdFilterDeserializer
[src]
type Trait = Filter
The trait that this deserializer will create.
type Config = ThresholdFilterConfig
This deserializer's configuration.
fn deserialize(
&self,
config: ThresholdFilterConfig,
_: &Deserializers
) -> Result<Box<Filter>, Box<Error + Sync + Send>>
&self,
config: ThresholdFilterConfig,
_: &Deserializers
) -> Result<Box<Filter>, Box<Error + Sync + Send>>
Create a new trait object based on the provided config.