I'm using Tomcat 9 in a Centos machine. The logs from Tomcat applications are generated at /opt/tomcat/logs.catalina.out. Is there a way to pass these logs to service logs (journalctl -u MyTomcat.service -f)?
I trigger my service from /etc/systemd/system.MyTomcat.service
ExecStart=/opt/tomcat/startup.sh (startup.sh call catalina.sh start)
I'm able to see the logs in catalina.out but journcalctl has only these rows but catalina includes all the logging from my apps
Feb 28 08:14:39 192.168.1.2 systemd[1]: Starting My Tomcat Service...
Feb 28 08:14:39 192.168.1.2systemd[1]: Started My Tomcat Service.
Feb 28 08:14:39 192.168.1.2tomcat[23222]: Tomcat started.