pub struct LogEmitter { /* private fields */ }Expand description
Emits JSON serialized events to the log facade at the configured level.
Implementations§
Source§impl LogEmitter
impl LogEmitter
Sourcepub fn new(level: Level) -> Self
pub fn new(level: Level) -> Self
Creates a new LogEmitter that logs at the provided Level.
Trait Implementations§
Source§impl Clone for LogEmitter
impl Clone for LogEmitter
Source§fn clone(&self) -> LogEmitter
fn clone(&self) -> LogEmitter
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 LogEmitter
impl Debug for LogEmitter
Source§impl Default for LogEmitter
impl Default for LogEmitter
Source§impl EventEmitter for LogEmitter
impl EventEmitter for LogEmitter
Source§fn emit(&mut self, event: &ThreadEvent)
fn emit(&mut self, event: &ThreadEvent)
Invoked for each event emitted by the automation runtime.
Auto Trait Implementations§
impl Freeze for LogEmitter
impl RefUnwindSafe for LogEmitter
impl Send for LogEmitter
impl Sync for LogEmitter
impl Unpin for LogEmitter
impl UnwindSafe for LogEmitter
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