[−][src]Struct async_log::Logger
A Logger that wraps other loggers to extend it with async functionality.
Methods
impl<L: Log + 'static, F> Logger<L, F> where
F: Fn() -> u64 + Send + Sync + 'static,
[src]
F: Fn() -> u64 + Send + Sync + 'static,
pub fn wrap(logger: L, with: F) -> Self
[src]
Wrap an existing logger, extending it with async functionality.
pub fn start(self, filter: LevelFilter) -> Result<(), SetLoggerError>
[src]
Start logging.
Trait Implementations
impl<L: Debug + Log + 'static, F: Debug> Debug for Logger<L, F> where
F: Fn() -> u64 + Send + Sync + 'static,
[src]
F: Fn() -> u64 + Send + Sync + 'static,
impl<L: Log, F> Log for Logger<L, F> where
F: Fn() -> u64 + Send + Sync + 'static,
[src]
F: Fn() -> u64 + Send + Sync + 'static,
Auto Trait Implementations
impl<L, F> Sync for Logger<L, F>
impl<L, F> Unpin for Logger<L, F> where
F: Unpin,
L: Unpin,
F: Unpin,
L: Unpin,
impl<L, F> Send for Logger<L, F>
impl<L, F> UnwindSafe for Logger<L, F> where
F: UnwindSafe,
L: UnwindSafe,
F: UnwindSafe,
L: UnwindSafe,
impl<L, F> RefUnwindSafe for Logger<L, F> where
F: RefUnwindSafe,
L: RefUnwindSafe,
F: RefUnwindSafe,
L: RefUnwindSafe,
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,