-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Use dynamically named log files? #57
Comments
seanvree
changed the title
FEAT: Use dynamic log files?
FEAT: Use dynamically named log files?
Jan 14, 2018
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! |
Closed
Developed |
seanvree
added
Priority: MED
In Development
and removed
Priority: LOW
help wanted
labels
Jun 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: