[][src]Struct log4rs::append::rolling_file::RollingFileAppenderDeserializer

pub struct RollingFileAppenderDeserializer;

A deserializer for the RollingFileAppender.

Configuration

kind: rolling_file

# The path of the log file. Required.
# The path can contain environment variables of the form $ENV{name_here},
# where 'name_here' will be the name of the environment variable that
# will be resolved. Note that if the variable fails to resolve,
# $ENV{name_here} will NOT be replaced in the path.
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 Clone for RollingFileAppenderDeserializer[src]

impl Copy for RollingFileAppenderDeserializer[src]

impl Debug for RollingFileAppenderDeserializer[src]

impl Default for RollingFileAppenderDeserializer[src]

impl Deserialize for RollingFileAppenderDeserializer[src]

type Trait = dyn Append

The trait that this deserializer will create.

type Config = RollingFileAppenderConfig

This deserializer's configuration.

impl Eq for RollingFileAppenderDeserializer[src]

impl Hash for RollingFileAppenderDeserializer[src]

impl PartialEq<RollingFileAppenderDeserializer> for RollingFileAppenderDeserializer[src]

impl StructuralEq for RollingFileAppenderDeserializer[src]

impl StructuralPartialEq for RollingFileAppenderDeserializer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any