pub struct AsyncLoggerBuilder { /* private fields */ }
Expand description
Builder for the async logger
Implementations§
Source§impl AsyncLoggerBuilder
impl AsyncLoggerBuilder
Sourcepub fn with_queue_size(self, queue_size: usize) -> Self
pub fn with_queue_size(self, queue_size: usize) -> Self
Set the queue size
Sourcepub fn with_level(self, level: LogLevel) -> Self
pub fn with_level(self, level: LogLevel) -> Self
Set the log level
Sourcepub fn with_workers(self, workers: usize) -> Self
pub fn with_workers(self, workers: usize) -> Self
Set the number of worker threads
Sourcepub fn build(self) -> AsyncLoggerHandle
pub fn build(self) -> AsyncLoggerHandle
Build the async logger
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncLoggerBuilder
impl !RefUnwindSafe for AsyncLoggerBuilder
impl Send for AsyncLoggerBuilder
impl Sync for AsyncLoggerBuilder
impl Unpin for AsyncLoggerBuilder
impl !UnwindSafe for AsyncLoggerBuilder
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