projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
f
[rust-lightning]
/
lightning
/
src
/
util
/
logger.rs
diff --git
a/lightning/src/util/logger.rs
b/lightning/src/util/logger.rs
index acd6d323e8f319e9b3c84550ab099d2258f486cb..df2b7f704051958a1e8ddc63523108061c8cfb08 100644
(file)
--- a/
lightning/src/util/logger.rs
+++ b/
lightning/src/util/logger.rs
@@
-14,8
+14,8
@@
//! The second one, client-side by implementing check against Record Level field.
//! Each module may have its own Logger or share one.
//! 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;
+use
core
::cmp;
+use
core
::fmt;
static LOG_LEVEL_NAMES: [&'static str; 6] = ["OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"];
static LOG_LEVEL_NAMES: [&'static str; 6] = ["OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"];
@@
-117,7
+117,7
@@
impl<'a> Record<'a> {
}
/// A trait encapsulating the operations required of a logger
}
/// A trait encapsulating the operations required of a logger
-pub trait Logger
: Sync + Send
{
+pub trait Logger {
/// Logs the `Record`
fn log(&self, record: &Record);
}
/// Logs the `Record`
fn log(&self, record: &Record);
}