Write to system log : System Log « Development « PHP






Write to system log

<?php
   define_syslog_variables();
   openlog("www.java2s.com", LOG_PID, LOG_USER);
   syslog(LOG_WARNING,"www.java2s.com example warning.");
   closelog();
?>


           
       








Related examples in the same category