-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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