Log redirector and filter
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Log redirector
New version LogRedirector released.
Requires EventGhost r1610 or later.
Pako
Requires EventGhost r1610 or later.
Pako
You know flattr ? You can 

Re: Log redirector
Pako,
Does the new version fix the conflict Log Redirector was having with the Application Control plugin?
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
Re: Log redirector
Pako
Any plans to have a setting to truncate the log file and/or have setting to write one log file per day?
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
Re: Log redirector
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!
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!
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!
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Log redirector
Each line of the log is not written individually.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.
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 

Re: Log redirector
Hi Pako,
It is time for me to start using the log redirector plugin, as there are now too many events scrolling too fast
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:
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?
It is time for me to start using the log redirector plugin, as there are now too many events scrolling too fast

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
I am using Eventghost 0.4.1 r 1640
Do you know how I could resolve the issue?
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Log redirector
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
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 

Re: Log redirector
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).
I don't think an automatic 'reload of content' would be possible when viewing the file inside notepad?
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).BTW: Why are you using firefox to view the file?
I don't think an automatic 'reload of content' would be possible when viewing the file inside notepad?
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Log redirector
I understand.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?
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 

Re: Log redirector
Thanks Pako, I will be trying that alternative out.
-
- Posts: 1
- Joined: Thu Jan 01, 2015 12:59 pm
Re: Log redirector
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
Program can be found here:
https://www.dropbox.com/s/holpx4e3yaxof ... g.exe?dl=0
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Log redirector and filter
There is a new version of the plugin.
New features:
Because of the new features, I've changed the name of the plugin.
Pako
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 {?}
Because of the new features, I've changed the name of the plugin.
Pako
You know flattr ? You can 

Re: Log redirector and filter
Seems to work very nicely, thanks! I love the drag and drop functionality! 

Re: Log redirector and filter
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:
Which I changed into this:
It seems to work nicely now, though. I just thought you should know in case it happens again.
Code: Select all
Tellstick.In|NexaL.Address|4610855|NexaL.Button|?|NexaL.Command|0|Value||
Code: Select all
Tellstick.In|NexaL.Address|4610855|NexaL.Button|{?}|NexaL.Command|0|Value||