mirror of
https://github.com/openharmony/third_party_rust_log.git
synced 2026-07-01 05:35:43 -04:00
abf0c0aafd0b0eb4fc9f67c822c8279c979e6880
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%