Skip to main content

PluginLogSink

Trait PluginLogSink 

Source
pub trait PluginLogSink: Send + Sync {
    // Required method
    fn log(&self, entry: &PluginLogEntry);
}
Expand description

Receives structured log entries from running plugin processes.

Register a custom implementation with set_plugin_log_sink to intercept plugin log output. The built-in DefaultPluginLogSink is a no-op for PluginLogSource::Stderr entries (those are already written to the per-instance log file) and forwards PluginLogSource::LogRpc entries into the tracing subscriber.

Required Methods§

Source

fn log(&self, entry: &PluginLogEntry)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§