RE: [users@httpd] logging from cgi

2005-06-22 Thread Bohumil Holubec
You can use syslog too. Anyway if you want make cgi.1, cgi.2 ... files, you need logrotate. (at least i think :)) On Tue, 21 Jun 2005, Michael D. Berger wrote: Very interesting. Do you think that it is better than syslog for my purpose? Thanks, Mike. -- Michael D. Berger [EMAIL PROTECTED] -

RE: [users@httpd] logging from cgi

2005-06-21 Thread Michael D. Berger
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: [EM

RE: [users@httpd] logging from cgi

2005-06-20 Thread Bohumil Holubec
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:

RE: [users@httpd] logging from cgi

2005-06-20 Thread Michael D. Berger
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 man

RE: [users@httpd] logging from cgi

2005-06-20 Thread Boyle Owen
> -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 w

[users@httpd] logging from cgi

2005-06-18 Thread Michael D. Berger
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. In syslog.conf: local0.* /var/log/httpd/cgi In c++ cgi: openlog("cgi",LOG_PID|LOG_NDELAY|LOG_NOWAIT,LOG_LOCAL0); syslog(LOG_INFO,