Mapeador de níveis de log
Escolha um nível em um sistema de log (syslog, o kernel Linux, Cisco IOS, Junos, Windows Event Log, .NET, Python, java.util.logging, Log4j 2, OpenTelemetry) e leia o equivalente mais próximo em cada um dos outros, com o número e as palavras de cada sistema, onde a correspondência é exata e onde é só o degrau mais próximo. A ponte é o SeverityNumber do OpenTelemetry, a única escala definida para conter as outras. Nada é enviado a lugar algum.
Operações e fieldcraftsyslog (RFC 5424): Warning (4) SeverityNumber 13 (WARN), na faixa WARN. warning conditions
O nível mais próximo em cada um dos outros sistemas
| sistema | nível | número próprio | correspondência |
|---|---|---|---|
| Linux kernel (printk) | KERN_WARNING | 4 | exata |
| Cisco IOS (logging) | warnings | 4 | exata |
| Junos (system syslog) | warning | sem número | exata |
| Windows Event Log | Warning | 3 | exata |
| .NET (Microsoft.Extensions.Logging) | Warning | 3 | exata |
| Python (logging) | WARNING | 30 | exata |
| Java (java.util.logging) | WARNING | 900 | exata |
| Log4j 2 | WARN | 300 | exata |
| OpenTelemetry (SeverityNumber) | WARN | 13 | exata |
As distâncias são em passos de SeverityNumber (1 a 24). Cada escada é posicionada na escala pela própria documentação ou pelo mapeamento de exemplo do OpenTelemetry (Data Model Appendix B); onde dois degraus de um sistema estão igualmente perto, os dois aparecem.
Cada escada, na única escala
| sistema | seus números | níveis, do mais grave ao menos grave, cada um com seu número e seu SeverityNumber |
|---|---|---|
| syslog (RFC 5424) | diminuem com a gravidade | Emergency 0 →21Alert 1 →19Critical 2 →18Error 3 →17Warning 4 →13Notice 5 →10Informational 6 →9Debug 7 →5 0 is the most severe; eight levels, three of them (Emergency, Alert, Critical) above most other ladders' top. |
| Linux kernel (printk) | diminuem com a gravidade | KERN_EMERG 0 →21KERN_ALERT 1 →19KERN_CRIT 2 →18KERN_ERR 3 →17KERN_WARNING 4 →13KERN_NOTICE 5 →10KERN_INFO 6 →9KERN_DEBUG 7 →5 Eight levels named and numbered like syslog's severities, written as strings in the message prefix; placed on the scale by that correspondence of name and number. KERN_DEFAULT (no prefix) and KERN_CONT ("c") are not levels. |
| Cisco IOS (logging) | diminuem com a gravidade | emergencies 0 →21alerts 1 →19critical 2 →18errors 3 →17warnings 4 →13notifications 5 →10informational 6 →9debugging 7 →5 Syslog's numbers with Cisco's keywords; the command reference maps each to its LOG_* constant; the default buffered level is generally 7. |
| Junos (system syslog) | sem números | emergency →21alert →19critical →18error →17warning →13notice →10info →9any →0none →0 Names only on Juniper's page, in syslog's order from emergency to info; "any" selects every level and "none" disables logging; there is no named debug rung. |
| Windows Event Log | diminuem com a gravidade | Critical 1 →18Error 2 →17Warning 3 →13Informational 4 →9Verbose 5 →5LogAlways 0 →0 1 is the most severe; 0 (LogAlways) is not a level; custom levels 16 to 255 are provider-defined. |
| .NET (Microsoft.Extensions.Logging) | crescem com a gravidade | Critical 5 →21Error 4 →17Warning 3 →13Information 2 →9Debug 1 →5Trace 0 →1None 6 →0 0 is the least severe; None (6) is a filter value, not a message level. |
| Python (logging) | crescem com a gravidade | CRITICAL 50 →21ERROR 40 →17WARNING 30 →13INFO 20 →9DEBUG 10 →5NOTSET 0 →0 Numbers grow with severity in steps of ten; NOTSET (0) means "inherit"; any integer is a legal level, and the OpenTelemetry SDK for Python maps the tens exactly (10 DEBUG, 20 INFO, 30 WARN, 40 ERROR, 50 FATAL) and the values between to the range's second, third and fourth steps. |
| Java (java.util.logging) | crescem com a gravidade | SEVERE 1000 →17WARNING 900 →13INFO 800 →9CONFIG 700 →7FINE 500 →6FINER 400 →5FINEST 300 →1OFF Integer.MAX_VALUE →0ALL Integer.MIN_VALUE →0 Numbers grow with severity; CONFIG sits between INFO and FINE; OFF and ALL are the integer extremes, not levels. |
| Log4j 2 | diminuem com a gravidade | FATAL 100 →21ERROR 200 →17WARN 300 →13INFO 400 →9DEBUG 500 →5TRACE 600 →1OFF 0 →0ALL Integer.MAX_VALUE →0 A lower priority number is more severe (FATAL 100, TRACE 600); OFF (0) and ALL (Integer.MAX_VALUE) are filters, not levels. |
| OpenTelemetry (SeverityNumber) | crescem com a gravidade | FATAL 21 →21ERROR 17 →17WARN 13 →13INFO 9 →9DEBUG 5 →5TRACE 1 →1UNSPECIFIED 0 →0 The scale the others are placed on: 24 values in six ranges of four; 0 is unspecified. |
Fontes: RFC 5424, Tabela 2; a documentação de printk do kernel Linux; a referência de comandos do Cisco IOS (logging buffered); a referência de syslog do Junos da Juniper; o esquema de manifesto de eventos do Windows; o enum LogLevel do .NET; a documentação do módulo logging do Python e a tabela do próprio SDK Python do OpenTelemetry; a classe Level do Java SE 21; o manual do Log4j 2; o Logs Data Model do OpenTelemetry e seu Apêndice B. Todas lidas em 05/10/2026; a lista completa está em Fontes, abaixo da ferramenta.
Referências
- RFC 5424, The Syslog Protocol (March 2009), section 6.2.1 Table 2
- Message logging with printk, The Linux Kernel documentation (core-api)
- Cisco IOS Configuration Fundamentals Command Reference, L through mode: logging buffered, the severity level table
- Juniper Networks, Junos OS: syslog facilities and severity levels (published 2013-07-08)
- Microsoft Learn, Windows Event Log: EventManifestSchema LevelType complex type (the predefined levels of winmeta.xml)
- Microsoft Learn, Microsoft.Extensions.Logging.LogLevel enum
- Python 3.14 documentation, logging: Logging Levels
- OpenTelemetry Python SDK, opentelemetry-sdk/_logs/_internal/__init__.py, the _STD_TO_OTEL table (main branch)
- Java SE 21 API, java.util.logging.Level
- Apache Log4j 2.x manual, Levels
- OpenTelemetry specification, Logs Data Model: SeverityNumber, and Data Model Appendix B, SeverityNumber example mappings