Logfiles with timestamps please

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
wolfram
Posts: 29
Joined: Sat Nov 26, 2005 12:36 pm

Logfiles with timestamps please

Post 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... :?
wolfram
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The INF messages etc will not be displayed if you set the debug level for those components to -1.

Phil
Post Reply