X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Futil%2Flogger.rs;h=b05ab10f3110b3446b4d8d0775b6f356d1314307;hb=d49802fb8f4518e6572d48ce32238eb70ffdb809;hp=bccc8cd21cfabd6df2f230ddd00db1ce2d39e0f1;hpb=0029f04fce6beba29e60b2c227d51bcf1ba15545;p=rust-lightning diff --git a/src/util/logger.rs b/src/util/logger.rs index bccc8cd2..b05ab10f 100644 --- a/src/util/logger.rs +++ b/src/util/logger.rs @@ -7,9 +7,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -/// There is currently 2 ways to filter log messages. First one, by using compilation flag, e.g "max_level_off". -/// The second one, client-side by implementing check against Record Level field, e.g TestLogger in test_utils. -/// Each module may have its own Logger or share one. +//! Log traits live here, which are called throughout the library to provide useful information for +//! debugging purposes. +//! +//! There is currently 2 ways to filter log messages. First one, by using compilation features, e.g "max_level_off". +//! The second one, client-side by implementing check against Record Level field. +//! Each module may have its own Logger or share one. use std::cmp; use std::fmt; @@ -126,7 +129,7 @@ pub trait Logger: Sync + Send { #[cfg(test)] mod tests { - use util::logger::{Logger, Level, Record}; + use util::logger::{Logger, Level}; use util::test_utils::TestLogger; use std::sync::{Arc};