Closed Bug 1066825 Opened 11 years ago Closed 7 years ago

[mozlog] Invert mozlog.structured level values

Categories

(Testing :: Mozbase, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: chmanchester, Unassigned)

Details

Mozlog's structured module supports logging in step with typical logging libraries via methods on the logger such as "debug", "info", "error". These each correspond to a log level keyed by a number and enumerated by mozlog.structured.structuredlog.log_levels. The implementation here means that a lesser number indicates a more severe log level (log_levels['ERROR'] < log_levels['WARNING']), however other logging libraries in the tree use a higher number to indicate a more severe level. If there are no objections, and existing users of this behavior are easy enough to update, we should invert the numeric values associated with mozlog log levels.
Summary: Invert mozlog.structured level values → [mozlog.structured] Invert mozlog.structured level values
Summary: [mozlog.structured] Invert mozlog.structured level values → [mozlog] Invert mozlog.structured level values

I'm pretty sure it's too hard to change this given there are now five years worth of log consumers.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.