logarr
logarr copied to clipboard
FEAT: Use dynamically named log files?
Issue: If the application does not use static file names, how do we use the "lastest" log file, i.e. application-date.txt?
Possible solution:
// Ombi Fix $files = scandir('/config/logs/ombi', SCANDIR_SORT_DESCENDING); $ombi = '/config/logs/ombi/' . $files[0];
"Ombi" => $ombi,
NOTE: This above code addition WILL work, the problem is that SOME applications update several log files in a single DIR location. For example, PLEX, which updates 3 different logs files in the same DIR in parallel. plex.log, plex.errors.log, plex.debug.log, etc etc.
credit: @Fma965
Obviously this is a really bad fix but it worked for the one app i needed it to. i wouldn't recommend using it as is
@Fma965 yeah, it's a hack, but this actually got me thinking...I can use this, just have to add some variables. It's been on my to-do list, so thanks!
Developed