commands.sh

systemctl service-log-target

linux

Get or set the log target for a service. Only works for D-Bus integrated services.

More info →

Examples (6)

Show the current log target for a service

Set the log target to `console` (send logs to `stderr`)

systemctl service-log-target service_name console

Set the log target to `journal` (send logs to `systemd-journald`)

systemctl service-log-target service_name journal

Set the log target to `syslog` (send logs to `/dev/log`)

systemctl service-log-target service_name syslog

Allow systemd to choose an appropriate log target

Disable all log output

made by @shridhargupta | data from tldr-pages