[−][src]Struct log4rs::append::rolling_file::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]
pub fn clone(&self) -> RollingFileAppenderDeserializer[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for RollingFileAppenderDeserializer[src]
impl Debug for RollingFileAppenderDeserializer[src]
impl Default for RollingFileAppenderDeserializer[src]
pub fn default() -> 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.
pub fn deserialize(
&self,
config: RollingFileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>>[src]
&self,
config: RollingFileAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>>
impl Eq for RollingFileAppenderDeserializer[src]
impl Hash for RollingFileAppenderDeserializer[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<RollingFileAppenderDeserializer> for RollingFileAppenderDeserializer[src]
pub fn eq(&self, other: &RollingFileAppenderDeserializer) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for RollingFileAppenderDeserializer[src]
impl StructuralPartialEq for RollingFileAppenderDeserializer[src]
Auto Trait Implementations
impl RefUnwindSafe for RollingFileAppenderDeserializer[src]
impl Send for RollingFileAppenderDeserializer[src]
impl Sync for RollingFileAppenderDeserializer[src]
impl Unpin for RollingFileAppenderDeserializer[src]
impl UnwindSafe for RollingFileAppenderDeserializer[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CloneAny for T where
T: Clone + Any, [src]
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send, [src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync, [src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync, [src]
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug, [src]
T: Any + Debug,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,