log level

A label on each log message saying how serious it is, from debug and info up to error, critical and emergency.

In more detail

Common levels are debug, info, warning and error, and a program configured at one level writes that level and everything more serious. Production usually logs less detail than development or staging.

Examples

log_level: info in group_vars/staging.yml is a typical per-environment variable.
Linux uses the eight syslog priorities, numbered 0 (emerg) to 7 (debug). journalctl -p err shows priority 3 and more severe. The kernel's loglevel boot parameter controls which kernel messages reach the console.
LOG_LEVEL=DEBUG python3 levels.py shows the cache lookup; LOG_LEVEL=ERROR shows only the lost order.

Related terms

Taught in

References

Certification courses