Struct log4rs::append::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 deserializer will create.
type Config = CompoundPolicyConfig
This deserializer's configuration.
fn deserialize(
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<Policy>, Box<Error + Sync + Send>>
&self,
config: CompoundPolicyConfig,
deserializers: &Deserializers
) -> Result<Box<Policy>, Box<Error + Sync + Send>>
Create a new trait object based on the provided config.