httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael D. Berger" <m.d.ber...@ieee.org>
Subject RE: [users@httpd] logging from cgi
Date Tue, 21 Jun 2005 02:21:04 GMT
I quote from the Apacle 2.0 ScriptLog:

   Note that script logging is meant to be a debugging
   feature when writing CGI scripts, and is not meant
   to be activated continuously on running servers. It
   is not optimized for speed or efficiency, and may
   have security problems if used in a manner other
   than that for which it was designed.

Now I would like to log certain specific aspects of my
cgi activity on a "continuously running server".  Perhaps
I should just open a file and write to it?  This is how I
have been debugging. On the other, I like the files:
cgi, cgi.1, cgi.2, etc. that I think syslog will
generate.

Further suggestions much appreciated.
Mike.

--
Michael D. Berger
m.d.berger@ieee.org 

> -----Original Message-----
> From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
> Sent: Monday, June 20, 2005 4:21 AM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] logging from cgi
> 
> 
> > -----Original Message-----
> > From: Michael D. Berger [mailto:m.d.berger@ieee.org]
> > Sent: Samstag, 18. Juni 2005 21:25
> > To: Apache-Users
> > Subject: [users@httpd] logging from cgi
> > 
> > 
> > In order to get logging from my cgi I proceeded as shown
> > below.  Is this correct?  It did not seem to be working
> > all of the time, but I am not sure.
> 
> You might like to try apache's built in ScriptLog (see docs 
> for details) rather than messing around with syslog... 
> (syslog is for logging system processes. Apache is an application).
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> > 
> > In syslog.conf:
> >    local0.*           /var/log/httpd/cgi
> > 
> > In c++ cgi:
> >    openlog("cgi",LOG_PID|LOG_NDELAY|LOG_NOWAIT,LOG_LOCAL0);
> >    syslog(LOG_INFO,"entered");
> >    closelog();
> > 
> > Thanks,
> > Mike.
> > --
> > Michael D. Berger
> > m.d.berger@ieee.org 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message