mirror of
https://github.com/rust-lang/log.git
synced 2026-03-23 15:50:26 +00:00
Merge pull request #207 from jesusbv/master
logging levels and corresponding macros
This commit is contained in:
14
src/lib.rs
14
src/lib.rs
@@ -26,6 +26,20 @@
|
||||
//!
|
||||
//! # Use
|
||||
//!
|
||||
//! The basic use of the log crate is through the five logging macros: [`error!`],
|
||||
//! [`warn!`], [`info!`], [`debug!`] and [`trace!`]
|
||||
//! where `error!` represents the highest-priority log level, and `trace!` the lowest.
|
||||
//!
|
||||
//! Each of these macros accept format strings similarly to [`println!`].
|
||||
//!
|
||||
//!
|
||||
//! [`error!`]: ./macro.error.html
|
||||
//! [`warn!`]: ./macro.warn.html
|
||||
//! [`info!`]: ./macro.info.html
|
||||
//! [`debug!`]: ./macro.debug.html
|
||||
//! [`trace!`]: ./macro.trace.html
|
||||
//! [`println!`]: https://doc.rust-lang.org/stable/std/macro.println.html
|
||||
//!
|
||||
//! ## In libraries
|
||||
//!
|
||||
//! Libraries should link only to the `log` crate, and use the provided
|
||||
|
||||
Reference in New Issue
Block a user