[−][src]Struct async_logger_log::LoggerBuilder
Builder of Logger
instance. It can be used to provide custom record formatter, and writer
implementation.
Methods
impl LoggerBuilder
[src]
pub fn buf_size(self, size: usize) -> Self
[src]
Set the size of the pair of underlying buffers. The default is 256 messages each.
pub fn formatter(self, formatter: fn(_: &Record) -> String) -> Self
[src]
Set custom formatter of log records.
pub fn writer(self, writer: Box<dyn Writer<Box<String>>>) -> Self
[src]
Set custom writer implementation. The default is FileWriter
.
pub fn build(self) -> Result<Logger, Error>
[src]
Build the Logger
instance.
Auto Trait Implementations
impl !RefUnwindSafe for LoggerBuilder
impl Send for LoggerBuilder
impl !Sync for LoggerBuilder
impl Unpin for LoggerBuilder
impl !UnwindSafe for LoggerBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,