pub struct LoggerFactory;Expand description
Factory that creates loggers with different configurations.
Implementations§
Source§impl LoggerFactory
impl LoggerFactory
pub fn new() -> Self
pub fn create(&self, level: LogLevel) -> StructuredLogger
pub fn debug(&self) -> StructuredLogger
pub fn info(&self) -> StructuredLogger
pub fn warn(&self) -> StructuredLogger
pub fn error(&self) -> StructuredLogger
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoggerFactory
impl RefUnwindSafe for LoggerFactory
impl Send for LoggerFactory
impl Sync for LoggerFactory
impl Unpin for LoggerFactory
impl UnsafeUnpin for LoggerFactory
impl UnwindSafe for LoggerFactory
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