Log redirector and filter

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Log redirector

Post by Pako » Mon Jan 21, 2013 7:30 am

New version LogRedirector released.
Requires EventGhost r1610 or later.

Pako
You know flattr ? You can Image

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Log redirector

Post by Livin » Mon Jan 21, 2013 3:23 pm

Pako,
Does the new version fix the conflict Log Redirector was having with the Application Control plugin?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Log redirector

Post by Pako » Mon Jan 21, 2013 3:50 pm

I hope so. :)
But I did not try.

Pako
You know flattr ? You can Image

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Log redirector

Post by Livin » Mon May 13, 2013 10:14 pm

Pako
Any plans to have a setting to truncate the log file and/or have setting to write one log file per day?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: Log redirector

Post by techoguy » Mon Apr 14, 2014 8:08 pm

Hi Pako,
Great plugin!

I was curious what the "file commit interval" is and how it should be set or how changing the time affects the log files.

Thanks!
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Log redirector

Post by Pako » Tue Apr 15, 2014 7:05 am

techoguy wrote:I was curious what the "file commit interval" is and how it should be set or how changing the time affects the log files.
Each line of the log is not written individually.
This means that the lines are within a certain time stored only in memory.
So if you set a short time, it means that the system (and disk) will be subjected to unnecessarily frequent writing.
When you set a long time, it may be that you will lose a larger amount of data (when there is an accident just before writing).
I hope this is comprehensible.
Sorry for my "English".

Pako
You know flattr ? You can Image

piert
Experienced User
Posts: 322
Joined: Tue Jun 14, 2011 2:53 pm

Re: Log redirector

Post by piert » Tue Jun 03, 2014 7:58 am

Hi Pako,

It is time for me to start using the log redirector plugin, as there are now too many events scrolling too fast :D

I can load the plugin fine. The log is created and I can read it in Firefox (the file gets updated too, as I can scroll down to see extra information every 60 seconds).
If I close the text file and close the browser and then try to save my Eventghost configuration before closing Eventghost, I get the following error:

Code: Select all

09:53:39   Error while saving file
09:53:39   Traceback (most recent call last) (1640):
09:53:39     File "C:\Program Files\EventGhost\eg\Classes\Document.py", line 189, in WriteFile
09:53:39       os.rename(tmpPath, filePath)
09:53:39   WindowsError: [Error 183] Kan geen bestand maken dat al bestaat 
The last windows Error is in Dutch and it means: "Can not create a file that already exists"

I am using Eventghost 0.4.1 r 1640
Do you know how I could resolve the issue?

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Log redirector

Post by Pako » Tue Jun 03, 2014 10:34 am

I have to admit that I do not know what it means.
I never encountered with it.
What is the name (and where it is located) file that you are saving by using the Log redirector?

BTW: Why are you using firefox to view the file?
This is a normal plane text. This you can do by using (for example) notepad.exe.

Pako
You know flattr ? You can Image

piert
Experienced User
Posts: 322
Joined: Tue Jun 14, 2011 2:53 pm

Re: Log redirector

Post by piert » Tue Jun 03, 2014 12:09 pm

Never mind, it turned out that running Eventghost as administrator resolved the issue (which was also the cause of another issue I had when suddenly all of my timers started failing to run).
BTW: Why are you using firefox to view the file?
This allows to have an automatic 'reload' of the view inside the tab in Firefox, which means that I can scroll down to see the most recently added logs every 30 seconds in the same view within Firefox (I have an auto reload addon in Firefox that reloads the tab every 10 seconds and your plugin is set to update the log every 30 seconds).
I don't think an automatic 'reload of content' would be possible when viewing the file inside notepad?

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Log redirector

Post by Pako » Tue Jun 03, 2014 2:21 pm

piert wrote:This allows to have an automatic 'reload' of the view inside the tab in Firefox, which means that I can scroll down to see the most recently added logs every 30 seconds in the same view within Firefox (I have an auto reload addon in Firefox that reloads the tab every 10 seconds and your plugin is set to update the log every 30 seconds).
I don't think an automatic 'reload of content' would be possible when viewing the file inside notepad?
I understand.
However - you may want to try something else ?
It's a single file, no need to install, just run ...

Pako
You know flattr ? You can Image

piert
Experienced User
Posts: 322
Joined: Tue Jun 14, 2011 2:53 pm

Re: Log redirector

Post by piert » Wed Jun 04, 2014 5:52 am

Thanks Pako, I will be trying that alternative out.

weekendowel
Posts: 1
Joined: Thu Jan 01, 2015 12:59 pm

Re: Log redirector

Post by weekendowel » Thu Jan 01, 2015 1:14 pm

For anyone who is interested I created a simple program to view the logfile. I am using Eventghost as a service and I wanted some way to view the log as I could when using Evenghost as a desktop application. It automatically gets new log event when Log redirector writes to the logfile (I use 5 seconds in the settings for File commit), and there is a setting for maximum amounts of lines and also how many hours it will initially display. And also it locks new events from displaying when you have your mouse hovering over the logarea.

Program can be found here:

https://www.dropbox.com/s/holpx4e3yaxof ... g.exe?dl=0

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Log redirector and filter

Post by Pako » Tue Mar 17, 2015 8:32 am

There is a new version of the plugin.
New features:
  • event filtering can be used even for native EventGhost log
  • added identifiers INFO, NOTICE and ERROR
  • filter string can contain curly brace wildcards {*} and {?}
My big thanks belong to krambriw for beta-testing, valuable comments and proofreading.
Because of the new features, I've changed the name of the plugin.

Pako
You know flattr ? You can Image

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Log redirector and filter

Post by Mastiff » Tue Mar 17, 2015 9:04 am

Seems to work very nicely, thanks! I love the drag and drop functionality! :mrgreen:

Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: Log redirector and filter

Post by Mastiff » Tue Mar 17, 2015 9:14 am

Oops, spoke a bit too soon it seems. I had two wildcard events with ? defined, and suddenly saw that I needed to change them to {?}. On apply it locked up EG. It's not reproduceable, though. Maybe it was because something else was going on at the exact same time? The entry I edited was this:

Code: Select all

Tellstick.In|NexaL.Address|4610855|NexaL.Button|?|NexaL.Command|0|Value||
Which I changed into this:

Code: Select all

Tellstick.In|NexaL.Address|4610855|NexaL.Button|{?}|NexaL.Command|0|Value||
It seems to work nicely now, though. I just thought you should know in case it happens again.

Post Reply