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