[Mapserver-users] How to log requests on remote wms-servers
Frieso ter Haseborg
ter-haseborg at sf-datentechnik.de
Wed Jun 23 00:23:44 PDT 2004
Hi,
MS_ERRORFILE did it. (SetEnv MS_ERRORFILE "stderr" in the httpd.conf). Now I receive the error of the msHTTPExecuteRequests in the apache error log. Since mapserver only shows a blank image, neither returns a xml- nor an inimage-exception, I had no idea, of what went wrong.
Thanx a lot!
btw: A way to get the error displayed directly in the browser is to place another layer provoking an msDrawMap-error behind the "problem-child". So one failing layer only gives errors in the apache-log, a second layer with DrawMap-error raises the error to the browser. Is this by design (no errors raised on failing http get request), or am I overlooking something?
TIA,
Frieso ter Haseborg
- Software Development -
--
--------------------------------------------------
S&F Datentechnik GmbH&Co.KG
Reimersstr. 41b
26789 Leer, Germany
> -----Original Message-----
> From: Daniel Morissette [mailto:dmorissette at dmsolutions.ca]
> Sent: Tuesday, June 22, 2004 2:39 PM
> To: Frieso ter Haseborg
> Cc: moeller at basis5.de; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] How to log requests on remote
> wms-servers
>
>
> 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