I am trying to control the log files that some processes run on linux (to create a shared log file where the log entries are grouped together when they happen). I am currently going to open the files being logged, poll using inotify (or wrappers), and then check if I can read the file more.
Is there a better way to do this? Perhaps some kind of library that is viewing read / change in files being viewed?
source
share