Trait clingo::Logger

source ·
pub trait Logger {
    // Provided method
    fn log(&mut self, code: Warning, message: &str) { ... }
}
Expand description

An instance of this trait has to be registered with a solver to implement a custom logging.

Provided Methods§

source

fn log(&mut self, code: Warning, message: &str)

Callback to intercept warning messages.

Arguments
  • code - associated warning code
  • message - warning message

See:

Implementors§