third_party_rust_log/README.md
Steven Fackler 42a353eaf4 Rewrite liblog into a logging facade
See issue #3 for background.

Closes #3
Closes #7
Closes #11
2015-01-24 22:55:04 -08:00

846 B

log

A Rust library providing a lightweight logging facade.

Build Status

Documentation

A logging facade provides a single logging API that abstracts over the actual logging implementation. Libraries can use the logging API provided by this crate, and the consumer of those libraries can choose the logging implementation that is most suitable for its use case.

Libraries should simply depend on the log crate, using the various logging macros as they like. Applications should choose a logging implementation that will process all logging messages.

Usage

Add this to your Cargo.toml:

[dependencies]
log = "0.2"

and this to your crate root:

#[macro_use]
extern crate log;