Page 2 of 3
Re: Log redirector
Posted: Mon Jan 21, 2013 7:30 am
by Pako
New version LogRedirector released.
Requires EventGhost r1610 or later.
Pako
Re: Log redirector
Posted: Mon Jan 21, 2013 3:23 pm
by Livin
Pako,
Does the new version fix the conflict Log Redirector was having with the Application Control plugin?
Re: Log redirector
Posted: Mon Jan 21, 2013 3:50 pm
by Pako
I hope so.
But I did not try.
Pako
Re: Log redirector
Posted: Mon May 13, 2013 10:14 pm
by Livin
Pako
Any plans to have a setting to truncate the log file and/or have setting to write one log file per day?
Re: Log redirector
Posted: Mon Apr 14, 2014 8:08 pm
by techoguy
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!
Re: Log redirector
Posted: Tue Apr 15, 2014 7:05 am
by Pako
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
Re: Log redirector
Posted: Tue Jun 03, 2014 7:58 am
by piert
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:
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?
Re: Log redirector
Posted: Tue Jun 03, 2014 10:34 am
by Pako
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
Re: Log redirector
Posted: Tue Jun 03, 2014 12:09 pm
by piert
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?
Re: Log redirector
Posted: Tue Jun 03, 2014 2:21 pm
by Pako
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
Re: Log redirector
Posted: Wed Jun 04, 2014 5:52 am
by piert
Thanks Pako, I will be trying that alternative out.
Re: Log redirector
Posted: Thu Jan 01, 2015 1:14 pm
by weekendowel
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
Re: Log redirector and filter
Posted: Tue Mar 17, 2015 8:32 am
by Pako
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
Re: Log redirector and filter
Posted: Tue Mar 17, 2015 9:04 am
by Mastiff
Seems to work very nicely, thanks! I love the drag and drop functionality!

Re: Log redirector and filter
Posted: Tue Mar 17, 2015 9:14 am
by Mastiff
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.