pub struct Logger<F>where
F: Formatter,{ /* private fields */ }Expand description
The logger class
Implementations§
Source§impl<F> Logger<F>where
F: Formatter,
impl<F> Logger<F>where
F: Formatter,
Sourcepub fn new(formatter: F, host: &str, app: &str) -> Logger<F>
pub fn new(formatter: F, host: &str, app: &str) -> Logger<F>
Create a logger class with the specified command, the name of the host, and the name of the
application. Note that the logger takes ownership of the formatter. If you will later need
to examine the internals of the formatter, it is available at logger.formatter.
Auto Trait Implementations§
impl<F> Freeze for Logger<F>where
F: Freeze,
impl<F> RefUnwindSafe for Logger<F>where
F: RefUnwindSafe,
impl<F> Send for Logger<F>where
F: Send,
impl<F> Sync for Logger<F>where
F: Sync,
impl<F> Unpin for Logger<F>where
F: Unpin,
impl<F> UnwindSafe for Logger<F>where
F: UnwindSafe,
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