Skip to content

Commit d7c11dd

Browse files
Merge pull request #4514 from SteveGilvarry/docs_debug_logging
Add section on debug logs that we can reference when asking for them.
2 parents 988d22f + 823504d commit d7c11dd

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

docs/userguide/logging.rst

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,30 @@ As well as specific script logging above, information, warning and error message
1919
where you can see that the date is formatted differently (and only to 1 second precision) and there is an additional field for the hostname (as syslog can operate over a network). As well as ZoneMinder entries in this file you may also see entries from various other system components. You should ensure that your syslogd daemon is running for syslog messages to be correctly handled.
2020

2121

22-
Customizing logging properly in ZoneMinder
23-
-------------------------------------------
22+
Quick Guide: Enable Debug Logs for a Specific Monitor
23+
--------------------------------------------------------------
2424

25-
.. todo:
26-
Is this all valid anymore ?
25+
If a monitor is failing (for example Monitor 5), enabling debug logs for that monitor usually provides
26+
the most useful detail without enabling debug for everything.
27+
28+
1. Go to ``Options -> Logging`` in the ZoneMinder web UI
29+
2. Enable ``LOG_DEBUG``
30+
3. Set ``LOG_DEBUG_TARGET`` to the monitor capture process name, e.g. ``_zmc_m5``
31+
4. Set ``LOG_DEBUG_LEVEL`` to ``9``
32+
5. Leave ``LOG_DEBUG_FILE`` empty (recommended; produces separate per-component log files)
33+
6. Click **Save**
34+
7. Restart ZoneMinder so the changes take effect:
35+
36+
::
37+
38+
sudo systemctl restart zoneminder
39+
40+
After restarting, look in your ZoneMinder log directory for a file like ``zmc_m5.log``.
41+
42+
Notes:
43+
44+
* Debug logging is verbose. Disable it when finished.
45+
* Multiple targets can be specified as a comma-separated list (example: ``_zmc_m5,_zmc_m11``).
2746

2847

2948
Other Notes

0 commit comments

Comments
 (0)