DEBUG keyword iin PHP MapScript
Jan Hartmann
j.l.h.hartmann at UVA.NL
Fri Oct 13 02:57:14 PDT 2006
Daniel Morissette wrote:
> Jan Hartmann wrote:
>>
>> I have a Mapfile with DEBUG on. When I use MapServer CGI (4.10.0) with
>> this Mapfile, debug output gets logged. When I use the same MapFile in
>> PHP MapScript, nothing is logged. Do I need to put in an extra
>> parameter in MapSCript?
>>
>
> Debug output should go to the Apache error_log as well. Is your PHP
> MapScript compiled with the same configure options as your mapserv CGI?
> i.e. did you include the --enable-debug configure option?
>
> Daniel
Hi Daniel,
I hadn't looked in the Apache error log. For a simple Mapfile with just
one raster layer, the log gives these lines both with MS CGI and MapScript:
[Fri Oct 13 11:39:37 2006] [error] [client 145.100.29.221] [Fri Oct 13
11:39:37 2006].521181 msDrawRasterLayerLow(test): entering.
[Fri Oct 13 11:39:37 2006] [error] [client 145.100.29.221] [Fri Oct 13
11:39:37 2006].522134 msDrawGDAL(): src=0,0,512,768, dst=66,0,268,400
[Fri Oct 13 11:39:37 2006] [error] [client 145.100.29.221] [Fri Oct 13
11:39:37 2006].535271 msDrawMap(): Layer 0 (test), 0.014s
[Fri Oct 13 11:39:37 2006] [error] [client 145.100.29.221] [Fri Oct 13
11:39:37 2006].745286 msDrawRasterLayerLow(test): entering.
[Fri Oct 13 11:39:37 2006] [error] [client 145.100.29.221] [Fri Oct 13
11:39:37 2006].746237 msDrawGDAL(): src=0,0,512,768, dst=66,0,268,400
[Fri Oct 13 11:39:37 2006] [error] [client 145.100.29.221] [Fri Oct 13
11:39:37 2006].759500 msDrawMap(): Layer 0 (test), 0.014s
However, I also declared a Logfile in the MapFile, and this gives with
MapServer CGI:
Fri Oct 13 11:42:18 2006,6076,145.100.29.221,test,3,157762.000000
6229494.000000 1094582.000000 7166314.000000,-1.000000 -1.000000,,normal
execution
and with PHP nothing.
What is the relationship between the two logs, and why doesn't the
second one show up in PHP MapScript?
Jan
More information about the MapServer-users
mailing list