Systemd have its own loggin system called Systemd Journal. It keep track of logs for each service.
To see log for a service, run
journalctl -u SERVICE_NAME
Example
root@ocp-serverok-in:~# journalctl -u myapp -- Logs begin at Wed 2020-05-27 06:43:34 UTC, end at Fri 2020-06-26 09:33:19 UTC. -- Jun 26 08:53:59 ocp-serverok-in systemd[1]: Started Sample web server. Jun 26 08:53:59 ocp-serverok-in cat[36147]: Starting web server root@ocp-serverok-in:~#
Leave a Reply