Skip to content
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

Open
seanvree opened this issue Jan 14, 2018 · 3 comments
Open

FEAT: Use dynamically named log files? #57

seanvree opened this issue Jan 14, 2018 · 3 comments

Comments

@seanvree
Copy link
Member

seanvree commented Jan 14, 2018

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

@seanvree seanvree self-assigned this Jan 14, 2018
@seanvree seanvree changed the title FEAT: Use dynamic log files? FEAT: Use dynamically named log files? Jan 14, 2018
@Fma965
Copy link

Fma965 commented 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

@seanvree
Copy link
Member Author

@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!

@seanvree seanvree added the WiKI label Jan 14, 2018
@seanvree seanvree mentioned this issue Jan 14, 2018
@seanvree seanvree added this to the v5.0 milestone Jun 4, 2018
@seanvree seanvree assigned seanvree and unassigned seanvree Jun 4, 2018
@rob1998 rob1998 self-assigned this Jun 6, 2018
@rob1998
Copy link
Contributor

rob1998 commented Jun 16, 2018

Developed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants