pub trait ILogger: Send + Sync {
// Required methods
fn info<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn debug<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn warn<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn error<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn exec<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn time(&self, msg: &str) -> TimeEvent;
}Expand description
Logging interface with leveled async logging plus timed events.
Required Methods§
Sourcefn info<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn info<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Logs at info level.
Sourcefn debug<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn debug<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Logs at debug level (suppressed by ConsoleLogger in production).
Sourcefn warn<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn warn<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Logs at warn level.
Sourcefn error<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn error<'life0, 'life1, 'async_trait>(
&'life0 self,
msg: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Logs at error level.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".