[go: nahoru, domu]

Voting

: zero minus zero?
(Example: nine)

The Note You're Voting On

daniele dot patoner at biblio dot unitn dot it
20 years ago
This work for me, to redirect logs to a separate syslog file

put this line in your /etc/syslog.conf :

local0.debug /var/log/php.log

Then restart syslogd:

/etc/init.d/syslog restart

php example:

<?php
define_syslog_variables
();
openlog("TextLog", LOG_PID, LOG_LOCAL0);

$data = date("Y/m/d H:i:s");
syslog(LOG_DEBUG,"Messagge: $data");

closelog();
?>

<< Back to user notes page

To Top