Skip to main content

LogSink

Type Alias LogSink 

Source
pub type LogSink = Arc<dyn Fn(&str, &str) + Send + Sync>;
Expand description

Receives each line a plugin logs: (plugin, line). A log message arrives prefixed by its level (info: , warning: for warn and error, debug: for debug and trace), as does progress (info: ); a stderr line arrives as written.

Aliased Typeยง

pub struct LogSink { /* private fields */ }