mirror of
https://gitee.com/openharmony/third_party_rust_log
synced 2024-11-23 15:50:41 +00:00
42a353eaf4
See issue #3 for background. Closes #3 Closes #7 Closes #11
846 B
846 B
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;