From d3aa95b4c4ccc1498803f0fa461a690771f0e8b4 Mon Sep 17 00:00:00 2001 From: jesusbv Date: Wed, 12 Jul 2017 08:57:19 +0100 Subject: [PATCH] logging levels and coresponding macros --- src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c9232ca..f485c1b 100644 --- a/src/lib.rs +++ b/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