[Mapserver-users] How to log requests on remote wms-servers
Frieso ter Haseborg
ter-haseborg at sf-datentechnik.de
Wed Jun 23 00:31:14 PDT 2004
Hi,
no, basic logging of the requests is not what I want - then of course the server logs would do.
What I'm searching for is way, "to log the requests the UMN wms-client sends to a remote wms-server". So no server-side logging, but client-side logging for debugging purposes.
I just want to log the url the mapserver-client generates and sends to a remote wms-server I've no access to. In this case MS_ERRORFILE as mentioned by Daniel did it, since the client received a HTTP request error. But a general mechanism to log the generated url would still be interesting.
TIA,
Frieso ter Haseborg
- Software Development -
--
--------------------------------------------------
S&F Datentechnik GmbH&Co.KG
Reimersstr. 41b
26789 Leer, Germany
> -----Original Message-----
> From: Andrew Haigh [mailto:andrew at andrewhaigh.net]
> Sent: Tuesday, June 22, 2004 8:02 PM
> To: Daniel Morissette
> Cc: Frieso ter Haseborg; moeller at basis5.de;
> mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] How to log requests on remote
> wms-servers
>
>
> 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