Page 1 of 1

Logfiles with timestamps please

Posted: Sat Dec 10, 2005 8:17 pm
by wolfram
I have an important request and hint: PLEASE put tiem stamps in all log lines, its almost impossible to debug when you dont know when something has happened.
What I do is , i have a script which emptys all log files so I can see new messages...
I think this is cumbersome..
Maybe somebody has a heart for me... :?

Posted: Mon Dec 12, 2005 9:37 am
by zoneminder
This is an ongoing process at the moment. In the last release I added it to some of the scripts and for the next I've already added it to some more. I will also be using syslog in the perl scripts so that all debug etc goes to the same place.

Phil

Posted: Mon Dec 12, 2005 8:10 pm
by SyRenity
Hi.

Do you mean that all the ZM logging will be redirected to the /var/log/message log? It will be nice, but some level of control over the zmc/zma debug information will be required, otherwise all the debug information sent by the Perl scripts will be lost between the various connection and alert notices.

Posted: Mon Dec 12, 2005 9:25 pm
by zoneminder
As it stands, by default it will all go to /var/log/messages (or wherever you configure your syslog output to go). At the moment though, debug (as opposed to errors etc) doesn't go to that file, only to any explicitly defined logs via the EXTRA_DEBUG config. I'm still not 100% sure of the best way to configure it but am doing the preparatory stuff to just get it all in one place ready.

Phil

Posted: Wed Dec 14, 2005 3:40 pm
by SyRenity
Hi.

I actually meant all the information messages (INF.), which fill the syslog. If there would be a way to disable these, than it would allow locating the Perl scripts errors quite easily, otherwise these would be lost.

Posted: Wed Dec 14, 2005 4:41 pm
by zoneminder
The INF messages etc will not be displayed if you set the debug level for those components to -1.

Phil