PATH_LOG option being ignored

Forum for questions and support relating to the 1.27.x releases only.
Locked
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

PATH_LOG option being ignored

Post by BiloxiGeek »

In the Paths tab of Options I have /var/log/zoneminder defined. But all the zoneminder log entries are going to /var/log/messages. How I do get zm to log it's activity under the /var/log/zoneminder subdirectory?
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: PATH_LOG option being ignored

Post by knight-of-ni »

Look at all the choices under Options -> Logging

Notice that you can set logging to syslog, to component files (e.g. /var/log/zoneminder), the weblog, and to the database.
All of these options are independent of one another and none of them are mutually exclusive from another.

If you want to log to component file, you have to set LOG_LEVEL_FILE to the appropriate level.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: PATH_LOG option being ignored

Post by BiloxiGeek »

Ok, got the logging happening to /var/log/zoneminder/ but I just noticed that after a restart of zoneminder all the zma and zmc logs got zeroed out. Is that expected? I'd rather do the work in rsyslog to rotate those in the OS if possible.
sgurgul
Posts: 3
Joined: Sat Aug 23, 2014 10:41 am

Re: PATH_LOG option being ignored

Post by sgurgul »

As far as I experienced zma* and zmc* logs will be properly logged to component log files only after server restart - restarting ZM service is not enough.
Locked