Say I have written a service that logs to /usr/local/opt/my_service/log/my_service.log. My understanding is that I can use newsyslog(8) to rotate the log. How can I feed the log file into syslog? Can logger(1) be used to do this?
Ideally I am looking for a solution that will pass new logging events to syslog in real time. I also need the solution stay in place when the system reboots.
Ideally I am looking for a solution that will pass new logging events to syslog in real time. I also need the solution stay in place when the system reboots.