syslog from cgi

Michael D. Berger m.d.berger at ieee.org
Sat Jun 18 19:23:28 UTC 2005


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,"entered");
   closelog();

Thanks,
Mike.
--
Michael D. Berger
m.d.berger at ieee.org 





More information about the redhat-list mailing list