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]
type Trait = Append
The trait that this deserializer will create.
type Config = RoutingAppenderConfig
This deserializer's configuration.
fn deserialize(
&self,
config: RoutingAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<Append>, Box<Error + Sync + Send>>
[src]
&self,
config: RoutingAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<Append>, Box<Error + Sync + Send>>
Create a new trait object based on the provided config.