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 get_limit_file_size(&self) -> &usize
pub fn get_limit_file_size(&self) -> &usize
Gets the maximum allowed size (in bytes) for individual log files.
§Returns
&usize- Reference to the maximum file size limit in bytes.
Sourcepub fn get_trace_dir(&self) -> &String
pub fn get_trace_dir(&self) -> &String
Sourcepub fn get_debug_dir(&self) -> &String
pub fn get_debug_dir(&self) -> &String
Sourcepub fn get_info_dir(&self) -> &String
pub fn get_info_dir(&self) -> &String
Sourcepub fn get_warn_dir(&self) -> &String
pub fn get_warn_dir(&self) -> &String
Sourcepub fn get_error_dir(&self) -> &String
pub fn get_error_dir(&self) -> &String
Sourcepub fn set_limit_file_size(&mut self, limit_file_size: usize) -> &mut Self
pub fn set_limit_file_size(&mut self, limit_file_size: usize) -> &mut Self
Sourcepub fn set_trace_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
pub fn set_trace_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
Sourcepub fn set_debug_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
pub fn set_debug_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
Sourcepub fn set_info_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
pub fn set_info_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
Sourcepub fn set_warn_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
pub fn set_warn_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
Sourcepub fn set_error_dir<P: AsRef<str>>(&mut self, dir: P) -> &mut Self
pub fn set_error_dir<P: AsRef<str>>(&mut self, dir: P) -> &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