[Mapserver-users] How to log requests on remote wms-servers
Arnulf Christl
arnulf.christl at ccgis.de
Sun Jun 27 04:11:24 PDT 2004
Frieso ter Haseborg wrote:
>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.
>
>
Hey,
a late response. We do all the WMS overlaying inthe client and can then
comfortably log every detail from there (also a great help when
statistically disecting your users). You can then differentiate users
and additionally have a little more information about whether the
request really reached the users eye or not. Precondition obviously is
that the WMS doesn't get queried by any other client. Technically no
problem but all that intentional openness of mapping services gets
warped. If that is the problem we wrap the WMS request in a small PHP
which writes additional info to a db log - but then again the user info
misses.
We are curtently extending more of these ideas in the Mapbender Client
Suite, if you are interested in joining development drop us a note.
Cheers, Arnulf.
--
----------------------------
CCGIS Christl & Stamm GbR
----------------------------
http://www.ccgis.de
http://www.mapbender.org
----------------------------
Service: +49 (0)228 90826 0
Direct: +49 (0)228 90826 23
Fax: +49 (0)228 90826 11
----------------------------
CCGIS Christl & Stamm GbR
Siemensstraße 8
53121 Bonn
GERMANY
>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
>>>
>>>
>>>
>>
>>
>
>_______________________________________________
>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