PATH_LOG option being ignored
-
- Posts: 271
- Joined: Tue Feb 11, 2014 2:04 pm
PATH_LOG option being ignored
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?
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: PATH_LOG option being ignored
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.
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/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 271
- Joined: Tue Feb 11, 2014 2:04 pm
Re: PATH_LOG option being ignored
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.
Re: PATH_LOG option being ignored
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.