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 policy which handles rotation of the log file. Required.
policy:
  # Identifies which policy is to be used. If no kind is specified, it will
  # default to "compound".
  kind: compound

  # The remainder of the configuration is passed along to the policy's
  # deserializer, and will vary based on the kind of policy.
  trigger:
    kind: size
    limit: 10 mb

  roller:
    kind: delete

Trait Implementations

impl Deserialize for RollingFileAppenderDeserializer
[src]

The trait that this builder will create.

Create a new trait object based on the provided config.