Expand description
Tag-filtered development logging (LAND_DEV_LOG env var). Must be declared before WindServiceHandlers so the dev_log! macro is available.
§DevLog - Tag-filtered development logging
Controlled by LAND_DEV_LOG environment variable.
The same tags work in both Mountain (Rust) and Wind/Sky (TypeScript).
§Usage
LAND_DEV_LOG=vfs,ipc ./Mountain # only VFS + IPC
LAND_DEV_LOG=all ./Mountain # everything
LAND_DEV_LOG=short ./Mountain # everything, compressed + deduped
LAND_DEV_LOG=terminal,exthost ./Mountain # terminal + extension host
./Mountain # nothing (only normal log!() output)§Short Mode
LAND_DEV_LOG=short enables all tags but compresses output:
- Long app-data paths aliased to
$APP - Consecutive duplicate messages counted (
(x14)suffix) - Rust log targets compressed (
D::Binary::Main::Entry→Entry)
§Tags (38 granular tags across all Elements)
| Tag | Scope |
|---|---|
vfs | File stat, read, write, readdir, mkdir, delete, copy |
ipc | IPC routing: invoke dispatch, channel calls |
config | Configuration get/set, env paths, workbench config |
lifecycle | Startup, shutdown, phases, window events |
storage | Storage get/set/delete, items, optimize |
folder | Folder picker, workspace navigation |
exthost | Extension host: create, start, kill, exit info |
extensions | Extension scanning, activation, management |
terminal | Terminal/PTY: create, sendText, profiles, shell |
search | Search: findFiles, findInFiles |
themes | Theme: list, get active, set |
window | Window: focus, maximize, minimize, fullscreen |
nativehost | OS integration: process, devtools, shell |
clipboard | Clipboard: read/write text, buffer, image |
commands | Command registry: execute, getAll |
model | Text model: open, close, get, updateContent |
output | Output channels: create, append, show |
notification | Notifications: show, progress |
progress | Progress: begin, end, report |
quickinput | Quick input: showQuickPick, showInputBox |
workingcopy | Working copy: dirty state |
workspaces | Workspace: folders, recent, enter |
keybinding | Keybindings: add, remove, lookup |
label | Label service: getBase, getUri |
history | Navigation history: push, goBack, goForward |
decorations | Decorations: get, set, clear |
textfile | Text file operations: read, write, save |
update | Update service: check, download, apply |
encryption | Encryption: encrypt, decrypt |
menubar | Menubar updates |
url | URL handler: registerExternalUriOpener |
grpc | gRPC/Vine: server, client, connections |
cocoon | Cocoon sidecar: spawn, health, handshake |
bootstrap | Effect-TS bootstrap stages |
preload | Preload: globals, polyfills, ipcRenderer |
Structs§
Statics§
Functions§
- Alias
Path - Replace the long app-data path with
$APPin a string. - AppData
Prefix - Get the app-data path prefix for aliasing (cached).
- Detect
AppData 🔒Prefix - EmitOTLP
Span - Emit an OTLP span to the local collector (Jaeger at 127.0.0.1:4318). Fire-and-forget on a background thread. Stops trying after first failure.
- Enabled
Tags 🔒 - Flush
Dedup - Flush the dedup buffer - prints the pending count if > 1.
- GetTrace
Id 🔒 - IsEnabled
- Check if a tag is enabled.
- IsShort
- Whether
LAND_DEV_LOG=shortis active. - NowNano
- rand_
u64 🔒