pub struct NoOpStructuredLogger { /* private fields */ }Expand description
No-op structured logger
Implementations§
Source§impl NoOpStructuredLogger
impl NoOpStructuredLogger
pub fn new() -> Self
pub fn with_level(level: LogLevel) -> Self
Trait Implementations§
Source§impl Default for NoOpStructuredLogger
Available on crate feature structured-logging only.
impl Default for NoOpStructuredLogger
Available on crate feature
structured-logging only.Source§impl StructuredLogger for NoOpStructuredLogger
Available on crate feature structured-logging only.
impl StructuredLogger for NoOpStructuredLogger
Available on crate feature
structured-logging only.Source§fn log_with_trace(
&self,
_level: LogLevel,
_message: &str,
_fields: &JsonValue,
_trace_id: Option<&str>,
_span_id: Option<&str>,
)
fn log_with_trace( &self, _level: LogLevel, _message: &str, _fields: &JsonValue, _trace_id: Option<&str>, _span_id: Option<&str>, )
Log with trace context correlation
Source§fn log_performance(
&self,
_operation: &str,
_duration: Duration,
_success: bool,
_additional_fields: &JsonValue,
)
fn log_performance( &self, _operation: &str, _duration: Duration, _success: bool, _additional_fields: &JsonValue, )
Log performance metrics
Source§fn is_level_enabled(&self, level: LogLevel) -> bool
fn is_level_enabled(&self, level: LogLevel) -> bool
Check if a level is enabled
Auto Trait Implementations§
impl Freeze for NoOpStructuredLogger
impl RefUnwindSafe for NoOpStructuredLogger
impl Send for NoOpStructuredLogger
impl Sync for NoOpStructuredLogger
impl Unpin for NoOpStructuredLogger
impl UnsafeUnpin for NoOpStructuredLogger
impl UnwindSafe for NoOpStructuredLogger
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