pub struct Logger { /* private fields */ }Expand description
Send + Sync immutable instance/context handle. Operations snapshot owned data.
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn counters(&self) -> Counters
pub fn counters(&self) -> Counters
Consistent counters for this instance without allocating a report map.
pub fn enabled(&self, level: Level) -> bool
pub fn filtered(&self) -> EmitResult
pub fn stats(&self) -> Report
Sourcepub fn with_context(&self, fields: &Fields) -> Result<Self, Error>
pub fn with_context(&self, fields: &Fields) -> Result<Self, Error>
Application < instance < operation < event. Clones share the same budget.
pub fn emit( &self, level: Level, source: Source, destination: Option<&str>, fields: &Fields, message: &str, ) -> EmitResult
pub fn emit_args( &self, level: Level, source: Source, destination: Option<&str>, fields: &Fields, args: Arguments<'_>, ) -> EmitResult
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Logger
impl !UnwindSafe for Logger
impl Forget for Logger
impl Freeze for Logger
impl Move for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnsafeUnpin for Logger
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