MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / fmt

Method fmt

crates/opencode-util/src/logging.rs:29–36  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

27
28impl std::fmt::Display for LogLevel {
29 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
30 match self {
31 LogLevel::Debug => write!(f, "DEBUG"),
32 LogLevel::Info => write!(f, "INFO"),
33 LogLevel::Warn => write!(f, "WARN"),
34 LogLevel::Error => write!(f, "ERROR"),
35 }
36 }
37}
38
39static LAST_TIMESTAMP: Mutex<i64> = Mutex::new(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected