raui_core

Trait Logger

source
pub trait Logger {
    // Provided method
    fn log(&mut self, _kind: LogKind, _message: &str) { ... }
}
Expand description

Common logging interface that custom log engines should follow to enable their reusability across different modules that will log messages to text output targets. Objects that implement this trait should be considered text output targets, for example text streams, terminal, network-based loggers, even application screen.

Provided Methods§

source

fn log(&mut self, _kind: LogKind, _message: &str)

Log message to this type of text output target.

§Arguments
  • kind - Kind of log message.
  • message - Message string slice.

Implementations on Foreign Types§

source§

impl Logger for ()

Implementors§