Skip to main content

StandardLoggingPort

Trait StandardLoggingPort 

Source
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§

Source

fn initialize(&self) -> ObservabilityResult<()>

Initialize the logging system (called once during agent startup)

Source

fn process_standard_log(&self, entry: LogEntry) -> ObservabilityResult<()>

Process a log entry from standard logging macros

Source

fn enabled(&self, level: &LogLevel) -> bool

Check if logging is enabled for this level

Implementors§