Skip to main content

LOG_LEVEL

Constant LOG_LEVEL 

Source
pub const LOG_LEVEL: &str = "LOG_LEVEL";
Expand description

Worker variable setting the lowest level logged: debug, info, warn, error or off.

Set it in cloudflare.config.ts (LOG_LEVEL: bindings.text("debug"),) or in .dev.vars. Unset: debug in debug builds (ocre dev), info in release builds (ocre deploy).

ยงExamples

assert_eq!(ocre::log::LOG_LEVEL, "LOG_LEVEL");