pub struct FileLogger { /* private fields */ }Expand description
Main configuration structure for log file output.
Controls where logs are stored and their maximum size limits. Use FileLogger::new() to create an instance with custom settings.
Implementations§
Source§impl FileLogger
impl FileLogger
Sourcepub fn limit_file_size(&mut self, limit_file_size: usize) -> &mut Self
pub fn limit_file_size(&mut self, limit_file_size: usize) -> &mut Self
Sourcepub fn is_disable(&self) -> bool
pub fn is_disable(&self) -> bool
Sourcepub async fn async_trace<T, L>(&self, data: T, func: L) -> &Self
pub async fn async_trace<T, L>(&self, data: T, func: L) -> &Self
Sourcepub async fn async_debug<T, L>(&self, data: T, func: L) -> &Self
pub async fn async_debug<T, L>(&self, data: T, func: L) -> &Self
Sourcepub async fn async_info<T, L>(&self, data: T, func: L) -> &Self
pub async fn async_info<T, L>(&self, data: T, func: L) -> &Self
Sourcepub async fn async_warn<T, L>(&self, data: T, func: L) -> &Self
pub async fn async_warn<T, L>(&self, data: T, func: L) -> &Self
Sourcepub async fn async_error<T, L>(&self, data: T, func: L) -> &Self
pub async fn async_error<T, L>(&self, data: T, func: L) -> &Self
Trait Implementations§
Source§impl Clone for FileLogger
impl Clone for FileLogger
Source§fn clone(&self) -> FileLogger
fn clone(&self) -> FileLogger
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 moreAuto Trait Implementations§
impl Freeze for FileLogger
impl RefUnwindSafe for FileLogger
impl Send for FileLogger
impl Sync for FileLogger
impl Unpin for FileLogger
impl UnwindSafe for FileLogger
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