artifact 0.2.4

A logging library which allows settings to be specified through cargo features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate artifact;

use artifact::{Logger, LoggerOutput, ArtifactGlobalLib};
use artifact::level;

fn main() {
  let _artifact_global = ArtifactGlobalLib::init();

  let logger1 = Logger::new("Foo", LoggerOutput::StdoutLog);
  logger1.debug("This should be there");
  logger1.redirect_set_level(LoggerOutput::StdoutLog, level::CRITICAL);
  logger1.debug("This should not print");
  logger1.critical("You should see this, and one message before this.");
}