Struct log4rs_rolling_file::policy::compound::CompoundPolicyDeserializer
[−]
[src]
pub struct CompoundPolicyDeserializer;
A deserializer for the CompoundPolicyDeserializer
.
Configuration
kind: compound
# The trigger, which determines when the log will roll over. Required.
trigger:
# Identifies which trigger is to be used. Required.
kind: size
# The remainder of the configuration is passed to the trigger's
# deserializer, and will vary based on the kind of trigger.
limit: 10 mb
# The roller, which processes the old log file. Required.
roller:
# Identifies which roller is to be used. Required.
kind: delete
# The remainder of the configuration is passed to the roller's
# deserializer, and will vary based on the kind of roller.
Trait Implementations
impl Deserialize for CompoundPolicyDeserializer
[src]
type Trait = Policy
The trait that this builder will create.
fn deserialize(&self, config: Value, deserializers: &Deserializers) -> Result<Box<Policy>, Box<Error>>
Create a new trait object based on the provided config.