Page 1 of 1

Remote Log Viewer (EventLog) alternative

PostPosted: Sat Nov 17, 2018 5:07 pm
by DVDDave
Benjamin's Remote Log View has been my favorite way of view Indigo logs for years. I realize it isn't getting much love these days but I've been able to keep it going by making small changes to the code. However, the file list being populated into the drop down menu is incorrect, seeming to consist of a random set of files that depends on how many are chosen to be displayed. I've tried to look at what is causing it with no luck. Since the problem started when I upgraded to Mojave, maybe a change in the python version is messing it up but I'm not sure and am hesitant to muck around with it in case I screw things up worse.

Anyway, I was wondering if anyone knows of something equivalent for remotely formatting and viewing the log files. Thanks!

--Dave

Re: Remote Log Viewer (EventLog) alternative

PostPosted: Sun Nov 18, 2018 12:03 pm
by mundmc
I didn’t even know this was a thing! Sorry I have no help for you, but this is giving pause to my working on my hacky log system.

Re: Remote Log Viewer (EventLog) alternative

PostPosted: Sun Nov 18, 2018 8:01 pm
by DVDDave
I think I got it working again. Apparently, Mojave changes the way files are sorted when they are read by the plugin. I added a sort function to line ~190 of the request handler.py code and it works now.
Code: Select all
         log_files = sorted(glob.glob (indigo_path+'/*Events.txt'), key=os.path.getmtime)

It's much slower now but at least it works. The slowdown is not due to the sorting since it slowed down before I added that.

--Dave

Re: Remote Log Viewer (EventLog) alternative

PostPosted: Tue Nov 27, 2018 1:57 pm
by bschollnick2
DVDDave wrote:
Benjamin's Remote Log View has been my favorite way of view Indigo logs for years. I realize it isn't getting much love these days but I've been able to keep it going by making small changes to the code. However, the file list being populated into the drop down menu is incorrect, seeming to consist of a random set of files that depends on how many are chosen to be displayed. I've tried to look at what is causing it with no luck. Since the problem started when I upgraded to Mojave, maybe a change in the python version is messing it up but I'm not sure and am hesitant to muck around with it in case I screw things up worse.

Anyway, I was wondering if anyone knows of something equivalent for remotely formatting and viewing the log files. Thanks!

--Dave


Dave,

Contact me directly, at Benjamin AT schollnick DOT net, and send me some screen shots of what you're seeing.

I haven't used this in a bit, so it's quite possible that the 7.2 upgrade broke something... But I'm more than happy to look into it.

- Ben

Re: Remote Log Viewer (EventLog) alternative

PostPosted: Tue Nov 27, 2018 2:03 pm
by DVDDave
bschollnick2 wrote:
Dave,

Contact me directly, at Benjamin AT schollnick DOT net, and send me some screen shots of what you're seeing.

I haven't used this in a bit, so it's quite possible that the 7.2 upgrade broke something... But I'm more than happy to look into it.

- Ben

Hi Ben, In a later post, you can see that I got it working by changing one line of code. If you still need the screen shot, please let me know. I'll have to revert to the original version to get it though. Thanks.

--Dave