Struct log4rs_routing_appender::RoutingAppenderDeserializer [] [src]

pub struct RoutingAppenderDeserializer;

A deserializer for the RoutingAppender.

Configuration

kind: routing

# The router used to determine the appender to use for a log event.
# Required.
router:
  kind: pattern
  pattern:
    kind: file
    path: "log/${mdc(job_id)}.log"

# Configuration of the cache of appenders generated by the router.
cache:

  # The duration that a cached appender has been unused after which it
  # will be disposed of. Defaults to 2 minutes.
  idle_timeout: 2 minutes

Trait Implementations

impl Deserialize for RoutingAppenderDeserializer
[src]

The trait that this deserializer will create.

This deserializer's configuration.

[src]

Create a new trait object based on the provided config.