Struct fast_log::plugin::file_split::FileSplitAppender
source · [−]pub struct FileSplitAppender { /* private fields */ }
Expand description
split log file allow compress log
Implementations
sourceimpl FileSplitAppender
impl FileSplitAppender
sourcepub fn new(
file_path: &str,
max_temp_size: LogSize,
rolling_type: RollingType,
packer: Box<dyn Packer>
) -> FileSplitAppender
pub fn new(
file_path: &str,
max_temp_size: LogSize,
rolling_type: RollingType,
packer: Box<dyn Packer>
) -> FileSplitAppender
split_log_bytes: log file data bytes(MB) splite file_path: the log dir or file name log_pack_cap: pack(zip,lz4 or more…) or log Waiting cap packer: default is zip packer
Trait Implementations
sourceimpl LogAppender for FileSplitAppender
impl LogAppender for FileSplitAppender
sourcefn do_log(&self, record: &FastLogRecord)
fn do_log(&self, record: &FastLogRecord)
write one log, you can use record.formated write to file or any storage
sourcefn do_logs(&self, records: &[FastLogRecord])
fn do_logs(&self, records: &[FastLogRecord])
Batch write log, or do nothing
Auto Trait Implementations
impl !RefUnwindSafe for FileSplitAppender
impl Send for FileSplitAppender
impl !Sync for FileSplitAppender
impl Unpin for FileSplitAppender
impl UnwindSafe for FileSplitAppender
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more