How to enable debug log on component web_php?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
tong123123
Posts: 4
Joined: Thu Nov 09, 2023 2:09 am

How to enable debug log on component web_php?

Post by tong123123 »

I already set "Debug" in log_level_weblog and check the checkbox "log_debug", but still cannot log debug log, why?
I expect to see the debug log in index.php

Code: Select all

ZM\Debug("View: $view Request: $request Action: $action User: " . (isset($user) ? $user->Username() : 'none'));

Image

Image
dougmccrary
Posts: 1336
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to enable debug log on component web_php?

Post by dougmccrary »

Did you restart?
tong123123
Posts: 4
Joined: Thu Nov 09, 2023 2:09 am

Re: How to enable debug log on component web_php?

Post by tong123123 »

yes, restart by

Code: Select all

systemctl restart zoneminder
is this correct?

Image

For more information, I can find the log in
/var/log/zm/web_php.log, just cannot see the log in Zoneminder console Log menu.
Last edited by tong123123 on Mon Dec 04, 2023 2:49 pm, edited 1 time in total.
User avatar
burger
Posts: 447
Joined: Mon May 11, 2020 4:32 pm

Re: How to enable debug log on component web_php?

Post by burger »

LOG_DEBUG is only for certain targets, e.g. _zmc_m5. Read the "?" next to LOG_DEBUG_TARGET.

But if LOG_LEVEL_WEBLOG is set to debug, it should show all logs in the weblog, after you restart zoneminder. Try the syslog option? There is also what I find most useful the LOG_LEVEL_FILE where files will show up in the /var/log/zm/ folder.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply