Skip to main content

LogSink

Trait LogSink 

Source
pub trait LogSink {
    // Required methods
    fn append(&mut self, record: &LogRecord) -> Result<(), FrenError>;
    fn path(&self) -> Option<&Path>;
}
Expand description

Trait for sinks that record rename events. The default implementation is JsonlLogSink; tests can use NullLogSink.

Required Methods§

Source

fn append(&mut self, record: &LogRecord) -> Result<(), FrenError>

Append one record. Errors are returned but the executor decides whether to continue.

Source

fn path(&self) -> Option<&Path>

Path of the underlying log file, if any. Used for the ExecutionReport.log_path.

Implementors§