pub struct LogFormatterFactory;Expand description
Factory pattern for instantiating the correct log formatter
Implementations§
Source§impl LogFormatterFactory
impl LogFormatterFactory
Sourcepub fn get_formatter() -> &'static (dyn LogFormatter + Send + Sync)
pub fn get_formatter() -> &'static (dyn LogFormatter + Send + Sync)
Returns a singleton reference to the configured LogFormatter. It dynamically switches based on the TEAQL_LOG_FORMAT environment variable.
Auto Trait Implementations§
impl Freeze for LogFormatterFactory
impl RefUnwindSafe for LogFormatterFactory
impl Send for LogFormatterFactory
impl Sync for LogFormatterFactory
impl Unpin for LogFormatterFactory
impl UnsafeUnpin for LogFormatterFactory
impl UnwindSafe for LogFormatterFactory
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