Struct log4rs_rolling_file::policy::compound::roll::fixed_window::FixedWindowRollerDeserializer [] [src]

pub struct FixedWindowRollerDeserializer;

A deserializer for the FixedWindowRoller.

Configuration

kind: fixed_window

# The filename pattern for archived logs. Must contain at least one `{}`.
# If the file extension of the pattern is `.gz` and the `gzip` Cargo feature
# is enabled, the archive files will be gzip-compressed.
# Required.
pattern: archive/foo.{}.log

# The maximum number of archived logs to maintain. Required.
count: 5

# The base value for archived log indices. Defaults to 0.
base: 1

Trait Implementations

impl Deserialize for FixedWindowRollerDeserializer
[src]

type Trait = Roll

The trait that this builder will create.

fn deserialize(&self, config: Value, _: &Deserializers) -> Result<Box<Roll>, Box<Error>>

Create a new trait object based on the provided config.