pub trait ArgminLog {
    fn log_info(&self, _: &str, _: &ArgminKV) -> Result<(), Error>;
    fn log_iter(&self, _: &ArgminKV) -> Result<(), Error>;
}
Expand description

Defince the interface every logger needs to expose

Required Methods

Logs general information (a message msg and/or key-value pairs kv).

Logs information from iterations. Only accepts key-value pairs. log_iter is made to log to a database or a CSV file. Therefore the structure of the key-value pairs should not change inbetween iterations.

Implementors

By implementing ArgminLog for ArgminLogger we basically allow a set of ArgminLoggers to be used just like a single ArgminLogger.