---
id: "log_level"
kind: "datatype"
status: "draft"
is_pii: false
name: "Log level (severity of a log message)"
categories: ["software"]
langs: ["common"]
quality: 65
url: "https://registry.apicrafter.io/datatype/log_level"
---

# Log level (severity of a log message) (`log_level`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Severity of a message in an application or system log: TRACE, DEBUG, INFO, WARN, ERROR and FATAL of Log4j and similar libraries, DEBUG, INFO, WARNING, ERROR and CRITICAL of the Python logging module, SEVERE to FINEST of java.util.logging, and the eight severities of syslog (Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debug), numbered 0 to 7 in RFC 5424. Log exports and monitoring dashboards count messages by it.

- Parent datatype: [`category`](https://registry.apicrafter.io/datatype/category.md)
- Personal data (PII): no
- Categories: Software development (software)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Examples

- `INFO`
- `WARN`
- `ERROR`
- `DEBUG`
- `Informational` — syslog severity 6

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `loglevelbyname` (field, `common/software.yaml`)
- `loglevelvalue` (data, `common/software.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Уровень журналирования

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Syslog>
- doc: <https://datatracker.ietf.org/doc/html/rfc5424>

## Quality

Score 65/100. Missing: regexp, negative example, mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/log_level.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/software/log_level.yaml>
