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 fieldcraft
Experimente

syslog (RFC 5424): Warning (4) SeverityNumber 13 (WARN), na faixa WARN. warning conditions

O nível mais próximo em cada um dos outros sistemas

sistemanívelnúmero própriocorrespondência
Linux kernel (printk)KERN_WARNING4exata
Cisco IOS (logging)warnings4exata
Junos (system syslog)warningsem númeroexata
Windows Event LogWarning3exata
.NET (Microsoft.Extensions.Logging)Warning3exata
Python (logging)WARNING30exata
Java (java.util.logging)WARNING900exata
Log4j 2WARN300exata
OpenTelemetry (SeverityNumber)WARN13exata

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

sistemaseus númerosníveis, do mais grave ao menos grave, cada um com seu número e seu SeverityNumber
syslog (RFC 5424)diminuem com a gravidadeEmergency 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 gravidadeKERN_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 gravidadeemergencies 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úmerosemergency →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 Logdiminuem com a gravidadeCritical 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 gravidadeCritical 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 gravidadeCRITICAL 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 gravidadeSEVERE 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 2diminuem com a gravidadeFATAL 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 gravidadeFATAL 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.

Endpoint da APIGEThttps://ronutz.com/api/v1/log-level-mapperDocumentado, não servido. Abre a especificação.

Referências