A small logging library.
Can log on 4 level: INFO
, DEBUG
, WARNING
, and ERROR
.
Each level can be configured to write to a specific output.
``` rust let mut log = Logger::new().unwrap(); log.config_format("[%l|%t]: %m");
log.configinfo(OutputKind::STDOUT); log.configdebug(OutputKind::STDERR); log.configwarning(OutputKind::FILE("errlog.txt")); log.configerror(OutputKind::FILE("errlog.txt"));
log.info("informations.");
log.warning("my warning.");
log.debug("more informations.");
log.error("an error.");
Display of `sdtout`:
Display of `sdterr`:
Content of `errlog.txt`:
```