[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

syslog 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.

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 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]