pub trait StandardLoggingPort: Send + Sync {
// Required methods
fn initialize(&self) -> Result<(), ObservabilityError>;
fn process_standard_log(
&self,
entry: LogEntry,
) -> Result<(), ObservabilityError>;
fn enabled(&self, level: &LogLevel) -> bool;
}Expand description
Port for standard logging integration
This port allows us to hook into standard Rust logging infrastructure:
- log::Log implementation
- tracing::Subscriber implementation
Required Methods§
Sourcefn initialize(&self) -> Result<(), ObservabilityError>
fn initialize(&self) -> Result<(), ObservabilityError>
Initialize the logging system (called once during agent startup)
Sourcefn process_standard_log(
&self,
entry: LogEntry,
) -> Result<(), ObservabilityError>
fn process_standard_log( &self, entry: LogEntry, ) -> Result<(), ObservabilityError>
Process a log entry from standard logging macros
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".