pub trait StandardLoggingPort: Send + Sync {
// Required methods
fn initialize(&self) -> ObservabilityResult<()>;
fn process_standard_log(&self, entry: LogEntry) -> ObservabilityResult<()>;
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) -> ObservabilityResult<()>
fn initialize(&self) -> ObservabilityResult<()>
Initialize the logging system (called once during agent startup)
Sourcefn process_standard_log(&self, entry: LogEntry) -> ObservabilityResult<()>
fn process_standard_log(&self, entry: LogEntry) -> ObservabilityResult<()>
Process a log entry from standard logging macros