satlog

Crates.iosatlog
lib.rssatlog
version0.2.1
sourcesrc
created_at2023-04-21 10:04:47.276497
updated_at2023-04-29 09:02:53.691509
descriptionA logger for SAT-like solvers
homepagehttps://sr.ht/~vigoux/satlog.rs/
repositoryhttps://git.sr.ht/~vigoux/satlog.rs
max_upload_size
id845169
size9,634
Thomas Vigouroux (vigoux)

documentation

README

satlog.rs: Simple logger for SAT-like solvers

This outputs logs to stdout as DIMACS comments:

c WARN: ...
c ERR: ...

For Level::Info messages, the level is not printed: this allows to have a quiet mode for the solver by setting the level filter to LevelFilter::Off.

Example usage

use satlog::SatLogger;
use log::LevelFilter;

fn main() {
    SatLogger::init(LevelFilter::Info);
}

Limitations / TODOs

  • Allow configuring the prefix for multiline log messages
Commit count: 0

cargo fmt