equinor / equinor/fusion-framework
Standardize log level numbering between TelemetryLevel and LogLevel enums
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 10
- Avg merge
- 19h 40m
- Merged PRs (30d)
- 150
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.