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
15
extern crate artifact;

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

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

  let logger = Logger::new_with_level("Foo",
                                      LoggerOutput::StdoutLog,
                                      level::TRACE);
  logger.trace("This will print");
  logger.verbose("But this won't");
  logger.critical("This definitely will.");
}