pub struct LogRawFile {
pub dir: String,
pub level: Level,
pub name: String,
pub format: LogFormat,
pub file_path: Box<Path>,
}Expand description
Config for file sink that supports atomic append from multiprocess. For log rotation, you need system log-rotate service to notify with signal.
Fields§
§dir: StringDirectory path
level: Levelmax log level in this file
name: Stringfilename
format: LogFormat§file_path: Box<Path>path: dir/name
Implementations§
Trait Implementations§
Source§impl Hash for LogRawFile
impl Hash for LogRawFile
Source§impl SinkConfigTrait for LogRawFile
impl SinkConfigTrait for LogRawFile
Source§fn write_hash(&self, hasher: &mut Box<dyn Hasher>)
fn write_hash(&self, hasher: &mut Box<dyn Hasher>)
Calculate hash for config comparision
Auto Trait Implementations§
impl Freeze for LogRawFile
impl RefUnwindSafe for LogRawFile
impl Send for LogRawFile
impl Sync for LogRawFile
impl Unpin for LogRawFile
impl UnwindSafe for LogRawFile
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