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.
Accessors are generated by #[derive(Data)]; the String setters accept
any impl AsRef<str> via #[set(type(AsRef<str>))].
Implementations§
Source§impl FileLogger
impl FileLogger
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
Source§impl FileLogger
impl FileLogger
pub fn set_path(&mut self, val: impl AsRef<str>) -> &mut Self
pub fn get_path(&self) -> &String
pub fn get_mut_path(&mut self) -> &mut String
pub fn get_limit_file_size(&self) -> &usize
pub fn get_mut_limit_file_size(&mut self) -> &mut usize
pub fn set_limit_file_size(&mut self, val: usize) -> &mut Self
pub fn set_trace_dir(&mut self, val: impl AsRef<str>) -> &mut Self
pub fn get_trace_dir(&self) -> &String
pub fn get_mut_trace_dir(&mut self) -> &mut String
pub fn set_debug_dir(&mut self, val: impl AsRef<str>) -> &mut Self
pub fn get_debug_dir(&self) -> &String
pub fn get_mut_debug_dir(&mut self) -> &mut String
pub fn set_info_dir(&mut self, val: impl AsRef<str>) -> &mut Self
pub fn get_info_dir(&self) -> &String
pub fn get_mut_info_dir(&mut self) -> &mut String
pub fn set_warn_dir(&mut self, val: impl AsRef<str>) -> &mut Self
pub fn get_warn_dir(&self) -> &String
pub fn get_mut_warn_dir(&mut self) -> &mut String
pub fn set_error_dir(&mut self, val: impl AsRef<str>) -> &mut Self
pub fn get_error_dir(&self) -> &String
pub fn get_mut_error_dir(&mut self) -> &mut String
Trait Implementations§
Source§impl Clone for FileLogger
impl Clone for FileLogger
Auto Trait Implementations§
impl Freeze for FileLogger
impl RefUnwindSafe for FileLogger
impl Send for FileLogger
impl Sync for FileLogger
impl Unpin for FileLogger
impl UnsafeUnpin 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