Skip to main content

LogOutput

Trait LogOutput 

Source
pub trait LogOutput: PineOutput {
    // Required methods
    fn add_log(&mut self, level: LogLevel, message: String);
    fn get_logs(&self) -> &[LogEntry];
}
Expand description

Extension trait for logging output

Required Methods§

Source

fn add_log(&mut self, level: LogLevel, message: String)

Add a log entry with the given level and message

Source

fn get_logs(&self) -> &[LogEntry]

Get all log entries

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§