[Mapserver-users] Log user actions

PeopleGIS info at peoplegis.com
Mon Jul 21 18:00:36 EDT 2003


Steve,

Does this functionality work with mapscript version?  Or just the CGI?


Kevin Flanders


-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Steve Lime
Sent: Friday, June 20, 2003 2:45 PM
To: palanisamyg at ornl.gov
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Log user actions


You use the logfile like this:

WEB
  LOG 'mapserver.log'
  ...
END

You should create an empty logfile of the same name with the right
permissions (needs to be writable by the web user, like the temporary
directory). If the filename is relative then it's relative to the
location of the mapfile.

The format is a comma delimited line consisting of:

timestamp
process id
remote address (ip)
map name
mode
extent
mouse click (if available)
requested layers
status (either an error message or "normal execution")

Steve


Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Giri Palanisamy <palanisamyg at ornl.gov> 06/20/03 01:17PM >>>
Thanks Steve,

Is there a documentation or sample code that I can refer?

Giri
At 01:05 PM 6/20/2003 -0500, you wrote:
>You could use MapScript of course. There is also a LOGFILE option
(for
>the WEB object I believe) that tells the MapServer CGI to create a
log
>for you. It gives you the information you'd want.
>
>Steve
>
> >>> Giri Palanisamy <palanisamyg at ornl.gov> 06/20/03 08:15AM >>>
>Hi,
>
>I need to log some information (date, IP address etc..)in to the data
>base,
>when ever an user performs a query. I tried using server side include
>(.shml) a servlet that performs this function, but I think the
>mapserver is
>not supporting the .shtml.
>
>Is there a way to log information? I am using Mapserver 3.6.3 on
>windows
>2000 server
>
>Thanks
>
>Giri
>
>_______________________________________________
>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