proxmox/proxmox-log
Lukas Wagner b01036f5cd log: set up custom priority mapping for tracing-journald
By default, the mapping between tracing/log error levels to
syslog priorities is as follows:
  error! -> Error
  warn! -> Warning
  info! -> Notice
  debug! -> Informational
  trace! -> Debug

Before using tracing-journald, we used `syslog` to write log messages
to the journal. That one has the following mapping:

  error! -> Error
  warn! -> Warning
  info! -> Informational
  debug! -> Debug
  trace! -> Debug

The changed mapping of info! log messages led to many messages being
written with the Notice priority, which are formatted bold when running
journalctl to view log messages.

This commit changes the mapping so that it is the same as with the
syslog crate.

Support for custom priority mappings was only introduced in
tracing-journald 0.3.1, so we have to bump the dependency
to that version.

Reported-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2025-04-09 16:38:40 +02:00
..
debian log: set up custom priority mapping for tracing-journald 2025-04-09 16:38:40 +02:00
src log: set up custom priority mapping for tracing-journald 2025-04-09 16:38:40 +02:00
Cargo.toml log: bump to 0.2.8-1 2025-03-19 12:19:43 +01:00