snippetbashTip
systemctl service-log-level — Get or set the runtime log level of a service via D-Bus. More information: <https://www.freedesktop.
Viewed 0 times
thecommandruntimeclilogsystemctl service-log-levelsetget
linux
Problem
How to use the
systemctl service-log-level command: Get or set the runtime log level of a service via D-Bus. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#service-log-level%20SERVICE%20%5BLEVEL%5D>.Solution
systemctl service-log-level — Get or set the runtime log level of a service via D-Bus. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#service-log-level%20SERVICE%20%5BLEVEL%5D>.Show the current log level of a service:
systemctl service-log-level {{service_name}}Set the log level of a service (the level name can be replaced with a number from 0 to 7):
systemctl service-log-level {{service_name}} {{emerg|alert|crit|err|warning|notice|info|debug}}Code Snippets
Show the current log level of a service
systemctl service-log-level {{service_name}}Set the log level of a service (the level name can be replaced with a number from 0 to 7)
systemctl service-log-level {{service_name}} {{emerg|alert|crit|err|warning|notice|info|debug}}Context
tldr-pages: linux/systemctl service-log-level
Revisions (0)
No revisions yet.