Skip to content

Commit 0f25ffc

Browse files
refactor(Grove): Rename LAND_DEV_LOG environment variable to Trace
Rename the development logging environment variable from LAND_DEV_LOG to Trace across all documentation and code in Source/DevLog.rs. This includes updating the module docstring, usage examples, inline comments, and the environment variable lookup in the EnabledTags function. Developers must now use `Trace=` instead of `LAND_DEV_LOG=` when enabling tagged development logging in Grove.
1 parent 577a02b commit 0f25ffc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Source/DevLog.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
//! # DevLog - Tag-filtered development logging for Grove
22
//!
3-
//! Controlled by `LAND_DEV_LOG` environment variable.
3+
//! Controlled by `Trace` environment variable.
44
//! The same tags work in both Mountain (Rust) and Wind/Sky (TypeScript).
55
//!
66
//! ## Usage
77
//! ```bash
8-
//! LAND_DEV_LOG=grove,wasm ./Grove # only grove + WASM
9-
//! LAND_DEV_LOG=all ./Grove # everything
10-
//! LAND_DEV_LOG=short ./Grove # everything, compressed + deduped
11-
//! LAND_DEV_LOG=transport,grpc ./Grove # transport + gRPC
8+
//! Trace=grove,wasm ./Grove # only grove + WASM
9+
//! Trace=all ./Grove # everything
10+
//! Trace=short ./Grove # everything, compressed + deduped
11+
//! Trace=transport,grpc ./Grove # transport + gRPC
1212
//! ./Grove # nothing
1313
//! ```
1414
//!
1515
//! ## Short Mode
1616
//!
17-
//! `LAND_DEV_LOG=short` enables all tags but compresses output:
17+
//! `Trace=short` enables all tags but compresses output:
1818
//! - Long app-data paths aliased to `$APP`
1919
//! - Consecutive duplicate messages counted (`(x14)` suffix)
2020
//! - Rust log targets compressed (`D::Binary::Main::Entry` → `Entry`)
@@ -101,14 +101,14 @@ pub fn FlushDedup() {
101101

102102
fn EnabledTags() -> &'static Vec<String> {
103103
ENABLED_TAGS.get_or_init(|| {
104-
match std::env::var("LAND_DEV_LOG") {
104+
match std::env::var("Trace") {
105105
Ok(Val) => Val.split(',').map(|S| S.trim().to_lowercase()).collect(),
106106
Err(_) => vec![],
107107
}
108108
})
109109
}
110110

111-
/// Whether `LAND_DEV_LOG=short` is active.
111+
/// Whether `Trace=short` is active.
112112
pub fn IsShort() -> bool { *SHORT_MODE.get_or_init(|| EnabledTags().iter().any(|T| T == "short")) }
113113

114114
/// Check if a tag is enabled.
@@ -122,7 +122,7 @@ pub fn IsEnabled(Tag:&str) -> bool {
122122
}
123123

124124
/// Log a tagged dev message. Only prints if the tag is enabled via
125-
/// LAND_DEV_LOG.
125+
/// Trace.
126126
///
127127
/// In `short` mode: aliases long paths, deduplicates consecutive identical
128128
/// lines.

0 commit comments

Comments
 (0)