pub struct LoggingEventEmitter { /* private fields */ }Expand description
Logging event emitter that logs events using tracing
Useful for debugging and development.
Implementations§
Source§impl LoggingEventEmitter
impl LoggingEventEmitter
Sourcepub fn with_level(level: LogLevel) -> Self
pub fn with_level(level: LogLevel) -> Self
Create a logging event emitter with specified level
Trait Implementations§
Source§impl Clone for LoggingEventEmitter
impl Clone for LoggingEventEmitter
Source§fn clone(&self) -> LoggingEventEmitter
fn clone(&self) -> LoggingEventEmitter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggingEventEmitter
impl Debug for LoggingEventEmitter
Source§impl Default for LoggingEventEmitter
impl Default for LoggingEventEmitter
Source§fn default() -> LoggingEventEmitter
fn default() -> LoggingEventEmitter
Returns the “default value” for a type. Read more
Source§impl EventEmitter for LoggingEventEmitter
impl EventEmitter for LoggingEventEmitter
Source§fn emit<'life0, 'async_trait>(
&'life0 self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit<'life0, 'async_trait>(
&'life0 self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit an event to the transport
Source§fn emit_batch<'life0, 'async_trait>(
&'life0 self,
events: Vec<Event>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn emit_batch<'life0, 'async_trait>(
&'life0 self,
events: Vec<Event>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Emit multiple events
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Check if the emitter is enabled/active
Auto Trait Implementations§
impl Freeze for LoggingEventEmitter
impl RefUnwindSafe for LoggingEventEmitter
impl Send for LoggingEventEmitter
impl Sync for LoggingEventEmitter
impl Unpin for LoggingEventEmitter
impl UnwindSafe for LoggingEventEmitter
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