Closed Bug 1647408 Opened 5 years ago Closed 5 years ago

Rust logs in Firefox Desktop are now available via MOZ_LOG

Categories

(Data Platform and Tools :: Glean: SDK, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chutten, Assigned: chutten)

Details

Attachments

(1 file)

Maybe we should take a look at how MOZ_LOG compares to RUST_LOG? And update the documentation.

Valentin's email announcing MOZ_LOG support isn't clear on how a RUST_LOG user might adapt their workflow, so I might miss something here. But I have the mdn article on gecko logging open, so that ought to help.

It seems from my testing that RUST_LOG="fog=trace,glean_core=trace" ./mach run can be most closely emulated with MOZ_LOG="timestamp,fog::*:5,glean_core::*:5" (though we lose terminal colours). On the plus side, at runtime you can configure the same thing by opening up about:config and setting preferences logging.fog::* to 5 and logging.glean_core::* to 5 and logging.config.timestamp to true.

Lemme work up a doc patch.

Assignee: nobody → chutten
Status: NEW → ASSIGNED
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/efac09e1e604 Update FOG logging info for MOZ_LOG support r=janerik
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: