[mapserver-users] MapServer logs
punk.kish at gmail.com
Fri Apr 18 09:49:48 EDT 2008
On 4/18/08, Daniel Morissette <dmorissette at mapgears.com> wrote:
> P Kishor wrote:
> > I want MapServer to write every call that it makes to the database via
> > OGR. So, I added the following line to my map file
> > WEB
> > ..
> > LOG "/Users/punkish/Sites/sqlitegis/tmp/ms.log"
> > END
> IIRC, LOG only logs some info on the mapserv request status at the end of
> its execution. I don't use it much and don't know much about it.
> To get debugging output, with MapServer 5.0+, set:
> CONFIG "MS_ERRORFILE"
> ... and then set DEBUG level (ON, or number between 1 and 5) at the
> top-level in the mapfile and in each layer for which you want debugging
tail tmp/ms.log shows me
[Fri Apr 18 08:46:54 2008].505608
[Fri Apr 18 08:46:54 2008].505626
[Fri Apr 18 08:46:54 2008].505647
[Fri Apr 18 08:46:54 2008].505654
[Fri Apr 18 08:46:54 2008].506741 msDrawMap(): Layer 0 (sg_zip), 0.257s
[Fri Apr 18 08:46:54 2008].216458
[Fri Apr 18 08:46:54 2008].228475 OGROPen(/Users/punkish/Data/sqlitegis/wi.db)
[Fri Apr 18 08:46:54 2008].231712
Unfortunately, it doesn't log the actual SQL calls being made to the
db. Perhaps that is an OGR logging issue. So, the next step is to find
a way to log that.
> More details are available in RFC-28:
> Daniel Morissette
More information about the mapserver-users