MCPcopy Create free account
hub / github.com/ElementsProject/lightning / from

Method from

plugins/src/logging.rs:29–37  ·  view source on GitHub ↗
(lvl: log::Level)

Source from the content-addressed store, hash-verified

27
28impl From<log::Level> for LogLevel {
29 fn from(lvl: log::Level) -> Self {
30 match lvl {
31 log::Level::Error => LogLevel::Error,
32 log::Level::Warn => LogLevel::Warn,
33 log::Level::Info => LogLevel::Info,
34 log::Level::Debug => LogLevel::Debug,
35 log::Level::Trace => LogLevel::Trace,
36 }
37 }
38}
39
40/// Start a listener that receives incoming log events, and then

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected