pub struct RollingFileAppenderDeserializer;
Expand description
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§
source§impl Clone for RollingFileAppenderDeserializer
impl Clone for RollingFileAppenderDeserializer
source§fn clone(&self) -> RollingFileAppenderDeserializer
fn clone(&self) -> RollingFileAppenderDeserializer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for RollingFileAppenderDeserializer
impl Default for RollingFileAppenderDeserializer
source§fn default() -> RollingFileAppenderDeserializer
fn default() -> RollingFileAppenderDeserializer
Returns the “default value” for a type. Read more
source§impl Deserialize for RollingFileAppenderDeserializer
impl Deserialize for RollingFileAppenderDeserializer
§type Config = RollingFileAppenderConfig
type Config = RollingFileAppenderConfig
This deserializer’s configuration.
source§fn deserialize(
&self,
config: RollingFileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>>
fn deserialize( &self, config: RollingFileAppenderConfig, deserializers: &Deserializers ) -> Result<Box<dyn Append>>
Create a new trait object based on the provided config.
source§impl PartialEq for RollingFileAppenderDeserializer
impl PartialEq for RollingFileAppenderDeserializer
source§fn eq(&self, other: &RollingFileAppenderDeserializer) -> bool
fn eq(&self, other: &RollingFileAppenderDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RollingFileAppenderDeserializer
impl Eq for RollingFileAppenderDeserializer
impl StructuralPartialEq for RollingFileAppenderDeserializer
Auto Trait Implementations§
impl RefUnwindSafe for RollingFileAppenderDeserializer
impl Send for RollingFileAppenderDeserializer
impl Sync for RollingFileAppenderDeserializer
impl Unpin for RollingFileAppenderDeserializer
impl UnwindSafe for RollingFileAppenderDeserializer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.