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 ServerLog
pub fn limit_file_size(&mut self, limit_file_size: usize) -> &mut ServerLog
Sourcepub fn is_disable(&self) -> bool
pub fn is_disable(&self) -> bool
Sourcepub async fn async_trace<T, L>(&self, data: T, func: L) -> &ServerLog
pub async fn async_trace<T, L>(&self, data: T, func: L) -> &ServerLog
Sourcepub async fn async_debug<T, L>(&self, data: T, func: L) -> &ServerLog
pub async fn async_debug<T, L>(&self, data: T, func: L) -> &ServerLog
Sourcepub async fn async_info<T, L>(&self, data: T, func: L) -> &ServerLog
pub async fn async_info<T, L>(&self, data: T, func: L) -> &ServerLog
Sourcepub async fn async_warn<T, L>(&self, data: T, func: L) -> &ServerLog
pub async fn async_warn<T, L>(&self, data: T, func: L) -> &ServerLog
Sourcepub async fn async_error<T, L>(&self, data: T, func: L) -> &ServerLog
pub async fn async_error<T, L>(&self, data: T, func: L) -> &ServerLog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more