[mapserver-users] MapServer Errors in APACHE logs.
Schweitzer, Peter
pschweitzer at usgs.gov
Tue Apr 29 12:51:32 PDT 2014
I think the problem is that mapserver is a CGI program, not a module
of Apache. If it were a module of Apache (for example, PHP) then its
error report could be sent to the Apache error log. But as a separate
process, it doesn't have access to the Apache log system. OCICBW
Perhaps if mapserver could be configured to write to its own error log
the parameters it got called with, then you could more easily
associate a particular web request with the mapserver error message.
At the moment, the only way you can do that is by matching the time of
the mapserver error entry with an apache log entry with the same time.
But does mapserver actually have anything that looks like the web
request that caused it to be called?
What do you think?
Peter
On Tue, Apr 29, 2014 at 2:55 PM, Basques, Bob (CI-StPaul)
<bob.basques at ci.stpaul.mn.us> wrote:
> All,
>
>
>
> Has anyone done any work with capturing MapServer errors in APACHE?
> Specifically I want to be able to tell the difference between a MapServer
> mis-config (textual error page) and a successful image response. The idea
> is to somehow log those textual message responses in an automated way
> through Apache.
>
>
>
> I’m pretty sure I could make my own custom logfile for MapServer (CGI)
> calls, but not so sure about textual response vs raster response filters, at
> least from the APACHE point of view . . .. Is a MapServer Text based error
> page considered for inclusion in the Apache error log or??
>
>
>
> Thanks.
>
>
>
> Bobb
>
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192)
(703) 648-6533 email: pschweitzer at usgs.gov
http://geology.usgs.gov/peter/
More information about the MapServer-users
mailing list