Struct log4rs_rolling_file::RollingFileAppenderDeserializer [] [src]

pub struct RollingFileAppenderDeserializer;

A deserializer for the RollingFileAppender.

Configuration

kind: rolling_file

# The path of the log file. Required.
path: log/foo.log

# Specifies if the appender should append to or truncate the log file if it
# already exists. Defaults to `true`.
append: true

# The encoder to use to format output. Defaults to `kind: pattern`.
encoder:
  kind: pattern

# The trigger which will identify when the log should be rolled. Required.
trigger:
  kind: size
  limit: 10 mb

# The roller which will archive the log file when it rolls over. Required.
roller:
  kind: delete

Trait Implementations

impl Deserialize for RollingFileAppenderDeserializer

type Trait = Append

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