MCPcopy Create free account
hub / github.com/GCWing/BitFun / level_rank

Function level_rank

src/apps/cli/src/logging.rs:267–275  ·  view source on GitHub ↗
(level: tracing::Level)

Source from the content-addressed store, hash-verified

265}
266
267fn level_rank(level: tracing::Level) -> u8 {
268 match level {
269 tracing::Level::ERROR => 1,
270 tracing::Level::WARN => 2,
271 tracing::Level::INFO => 3,
272 tracing::Level::DEBUG => 4,
273 tracing::Level::TRACE => 5,
274 }
275}
276
277fn target_override_rank(target: &str) -> Option<u8> {
278 if matches_target_rule(target, "ignore")

Callers 3

target_override_rankFunction · 0.85
is_enabled_for_targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected