mirror of
https://github.com/rust-lang/log.git
synced 2025-09-29 22:10:30 +00:00
log
A Rust library providing a lightweight logging facade.
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;
Description
Languages
Rust
100%