Skip to main content

AiLogEventPublisher

Type Alias AiLogEventPublisher 

Source
pub type AiLogEventPublisher = Arc<dyn Fn(AiLogPushed) + Send + Sync>;
Expand description

Closure invoked on every successful append. Wired by the App (or test harness) to publish AiLogPushed onto the runtime event bus, which lets log buffers refresh live as records arrive. Optional: AiLogger::with_defaults() starts with no publisher; set_event_publisher installs one.

Aliased Typeยง

pub struct AiLogEventPublisher { /* private fields */ }