pub struct LogFileWriterConfig {
pub level: Option<u32>,
pub format: LogFormatConfigOverride,
pub directory: PathBuf,
pub rotation: LogRotation,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub max_files: Option<usize>,
}Expand description
File appender configuration for logging
Fields§
§level: Option<u32>Level override
format: LogFormatConfigOverrideFormat override
directory: PathBufDirectory to store log files
rotation: LogRotationRotation strategy for log files. Default is Rotation::NEVER.
prefix: Option<String>Prefix for log file names. Default is the binary name.
suffix: Option<String>Suffix for log file names. Default is “log”.
max_files: Option<usize>Maximum number of log files to keep. Default is None, meaning no limit.
Trait Implementations§
Source§impl Clone for LogFileWriterConfig
impl Clone for LogFileWriterConfig
Source§fn clone(&self) -> LogFileWriterConfig
fn clone(&self) -> LogFileWriterConfig
Returns a duplicate 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 Debug for LogFileWriterConfig
impl Debug for LogFileWriterConfig
Source§impl<'de> Deserialize<'de> for LogFileWriterConfig
impl<'de> Deserialize<'de> for LogFileWriterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LogFileWriterConfig
impl RefUnwindSafe for LogFileWriterConfig
impl Send for LogFileWriterConfig
impl Sync for LogFileWriterConfig
impl Unpin for LogFileWriterConfig
impl UnwindSafe for LogFileWriterConfig
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