[Mapserver-users] How to log requests on remote wms-servers

Andrew Haigh andrew at andrewhaigh.net
Tue Jun 22 14:01:32 EDT 2004


Everyone,

If all you want to do is log requests, can't you just use your 
webserver logs?

Hope this helps.

Andrew


On 22 Jun 2004, at 13:38, Daniel Morissette wrote:

> Frieso ter Haseborg wrote:
>> Hi,
>> LOG "c:\Programme\Apache Group\Apache2\htdocs\tmp\ms.log"
>> or
>> LOG ms.log
>> gives no difference. So far I never had any problems using '/' 
>> instead of '\'.
>> Are there any other requirements to be met for ms to get a debug-log?
>
> The LOG directive applies only to the mapserv CGI via the traditional 
> CGI interface. It has no effect with the WMS or WFS interfaces or with 
> MapScript.
>
> BTW, there are two other ways to generate log output in MapServer:
> - Setting the MS_ERRORFILE environment variable will log all error 
> messages to the specified file
> - Compiling with --enable-debug (i.e. adding the -DENABLE_STDERR_DEBUG 
> -DNEED_NONBLOCKING_STDERR compile flags) will generate lots of debug 
> output to stderr (i.e. to the Apache error_log).
>
> We've been talking about unifying all this, you'll find more details 
> in bug 709:
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=709
>
>
> Now, if all you need is to log requests then none of the above will do 
> what you want. In this case you could simply create a wrapper script 
> that logs the request and passes control to the mapserv.exe.
>
> Daniel
> -- 
> ------------------------------------------------------------
>  Daniel Morissette               dmorissette at dmsolutions.ca
>  DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list