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

Daniel Morissette dmorissette at dmsolutions.ca
Tue Jun 22 08:38:35 EDT 2004


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/
------------------------------------------------------------




More information about the mapserver-users mailing list