Open Bug 2077111 Opened 1 month ago Updated 21 hours ago

[meta] Modernize LogModule

Categories

(Core :: Gecko Profiler, task, P2)

task

Tracking

()

ASSIGNED

People

(Reporter: dcarver, Assigned: dcarver)

References

(Depends on 8 open bugs, Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [fp][epic-fp-1415] )

Properties

Discoverability

We should be able to enumerate all the log modules (crossing languages).
Have a UI with search bar and let users configure without typing (error prone).

Coherence

crate::* is reserved for rust. We should probably forbid characters :, *, .

Automation

Tools/Tests to automatically detect log modules that are added/removed/invalid.

Plan

  • Resolve inconsistencies
  • Add a codegen step to generate a static list
  • Build marker filtering at runtime bug 2069963 on top (LogModule can be used as the emission source of marker)
Summary: Static list of log module → Modernize LogModule
Blocks: 2069963
Keywords: meta
Whiteboard: [fp]
Summary: Modernize LogModule → [meta] Modernize LogModule
Depends on: 2078666
Depends on: 2079145
Depends on: 2079751
Whiteboard: [fp] → [fp][epic-fp-1415]
See Also: → OneLogger

ConsoleAPI is not in the scope of this work (they should migrate to console.createInstance which is in the scope of this work).
ConsoleAPI don't have individual LogModules they all go through the LogModule("Dump")

Depends on: 2080769
Severity: -- → N/A
Priority: -- → P2

Florian asked me: Do we have a skill for claude to use MOZ_LOG? Or is doc good enough.

Depends on: 2084142
Depends on: 2084269
Depends on: 2084279
Depends on: 2084854
Depends on: 2086657
Depends on: 2086676
Depends on: 2086992
Depends on: 2094687
Depends on: 2095517
You need to log in before you can comment on or make changes to this bug.