Skip to content

Standardize log level numbering between TelemetryLevel and LogLevel enums #3528

@odinr

Description

@odinr

Currently there is confusion between different log level numbering schemes:

TelemetryLevel (console/browser logging):

  • 0 = Debug
  • 1 = Information
  • 2 = Warning
  • 3 = Error
  • 4 = Critical

LogLevel (CLI/server logging):

  • 0 = None
  • 1 = Error
  • 2 = Warning
  • 3 = Info
  • 4 = Debug

This inconsistency makes it difficult for developers to configure logging levels consistently. We should standardize on a common numbering scheme across both systems.

Proposed solution:
Consider aligning both systems to use a common standard like:

  • 0 = Debug (most verbose)
  • 1 = Info
  • 2 = Warning
  • 3 = Error
  • 4 = Critical (least verbose)
  • 5 = None (no logging)

This would make the numbering intuitive (higher numbers = less verbose) and consistent across the framework.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions