]> git.ipfire.org Git - thirdparty/systemd.git/commit
log: Add per target log levels 31839/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 20 Mar 2024 08:34:46 +0000 (09:34 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Mar 2024 11:46:32 +0000 (12:46 +0100)
commite8815abff6444d1eed0335331447693679990b6c
tree719ddc4b3d60984e7a0602b29d15dcbbb6e8b0c1
parent2e52b6c661e3d1f80a9d0b8f8b5a38307bbcd344
log: Add per target log levels

For CI in mkosi, I want to configure systemd to log at debug level
to the journal, but not to the console. While we already have max
level settings for journald's forwarding settings, not every log line
goes to the journal, specifically during early boot and when units
are connected directly to the console (think systemd-firstboot), so
let's extend the log level options we already have to allow specifying
a comma separated list of values and lets allow prefixing values with
the log target they apply to to make this possible.
man/common-variables.xml
src/basic/log.c
src/basic/log.h
src/core/execute.c
src/core/main.c