logarr icon indicating copy to clipboard operation
logarr copied to clipboard

FEAT: Use dynamically named log files?

Open seanvree opened this issue 7 years ago • 3 comments

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 avatar Jan 14 '18 05:01 seanvree

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 avatar Jan 14 '18 14:01 fma965

@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 avatar Jan 14 '18 14:01 seanvree

Developed

rob1998 avatar Jun 16 '18 14:06 rob1998