Skip to main content

IsEnabled

Function IsEnabled 

Source
pub fn IsEnabled(Tag: &str) -> bool
Expand description

Returns true when dev-log emission is enabled for Tag.

Reads LAND_DEV_LOG on every call. Cheap in practice (single std::env::var lookup) and avoids the cache-invalidation problem that a OnceLock-backed parse would create when the environment changes after boot (e.g. tests that flip the variable per-case).