Remote Log Viewer (EventLog) alternative

Posted on
Sat Nov 17, 2018 5:07 pm
DVDDave offline
Posts: 343
Joined: Feb 26, 2006
Location: San Jose, CA

Remote Log Viewer (EventLog) alternative

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

Posted on
Sun Nov 18, 2018 12:03 pm
mundmc offline
User avatar
Posts: 531
Joined: Sep 14, 2012

Re: Remote Log Viewer (EventLog) alternative

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.

Posted on
Sun Nov 18, 2018 8:01 pm
DVDDave offline
Posts: 343
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Remote Log Viewer (EventLog) alternative

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

Posted on
Tue Nov 27, 2018 1:57 pm
bschollnick2 offline
Posts: 1324
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Remote Log Viewer (EventLog) alternative

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

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Nov 27, 2018 2:03 pm
DVDDave offline
Posts: 343
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Remote Log Viewer (EventLog) alternative

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests