Very interesting. Do you think that it is better than syslog for my purpose? Thanks, Mike. -- Michael D. Berger [EMAIL PROTECTED]
> -----Original Message----- > From: Bohumil Holubec [mailto:[EMAIL PROTECTED] > Sent: Monday, June 20, 2005 10:33 PM > To: users@httpd.apache.org > Subject: RE: [EMAIL PROTECTED] logging from cgi > > > files cgi, cgi.1, cgi.2 ... can be create by logrotate daemon (man > logrotate) > In /etc/logrotate.conf or rather /etc/logrotate.d/mycgi you > can write for > example: > /var/log/cgi { > rotate 10 > weekly > compress > missingok > } > > > > > On Mon, 20 Jun 2005, Michael D. Berger wrote: > > > 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 > > [EMAIL PROTECTED] > > > >> -----Original Message----- > >> From: Boyle Owen [mailto:[EMAIL PROTECTED] > >> Sent: Monday, June 20, 2005 4:21 AM > >> To: users@httpd.apache.org > >> Subject: RE: [EMAIL PROTECTED] logging from cgi > >> > >> > >>> -----Original Message----- > >>> From: Michael D. Berger [mailto:[EMAIL PROTECTED] > >>> Sent: Samstag, 18. Juni 2005 21:25 > >>> To: Apache-Users > >>> Subject: [EMAIL PROTECTED] 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 > >>> [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > 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: [EMAIL PROTECTED] > > " from the digest: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > 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: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]