systemctl-service-log-target
Get or set the log target for a service. tldr-pages
On Linux
Linux
Get or set the log target for a service. Only works for D-Bus integrated services.
Show the current log target for a service
systemctl service-log-target service_nameIdentifySet the log target to console (send logs to stderr)
systemctl service-log-target service_name consoleIdentifySet the log target to journal (send logs to systemd-journald)
systemctl service-log-target service_name journalIdentifySet the log target to syslog (send logs to /dev/log)
systemctl service-log-target service_name syslogIdentifyAllow systemd to choose an appropriate log target
systemctl service-log-target service_name autoIdentifyDisable all log output
systemctl service-log-target service_name nullIdentify