UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

45 lines (43 loc) 1.93 kB
function define_syslog_variables() { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // % note 1: This function has been deprecated in PHP // * example 1: define_syslog_variables(); // * results 1: undefined $LOG_EMERG = 1; // Meaning: System is unusable $LOG_ALERT = 1; // Meaning: Immediate action required $LOG_CRIT = 1; // Meaning: Critical conditions $LOG_ERR = 4; $LOG_WARNING = 5; $LOG_NOTICE = 6; $LOG_INFO = 6; $LOG_DEBUG = 6; $LOG_KERN = 0; $LOG_USER = 8; // Meaning: Genetic user level $LOG_MAIL = 16; // Meaning: Log to email $LOG_DAEMON = 24; // Meaning: Other system daemons $LOG_AUTH = 32; $LOG_SYSLOG = 40; // Note: Not available on Netware $LOG_LPR = 48; $LOG_NEWS = 56; // Meaning: Usenet new Note: Not available on HP-UX // $LOG_UUCP = 64; $LOG_CRON = 72; // Note: Not available on all platforms $LOG_AUTHPRIV = 80; // Note: Not available on AIX /* // Reserved for local use: $LOG_LOCAL0 = ; // Note: Not available on Windows and Netware $LOG_LOCAL1 = ; // Note: Not available on Windows and Netware $LOG_LOCAL2 = ; // Note: Not available on Windows and Netware $LOG_LOCAL3 = ; // Note: Not available on Windows and Netware $LOG_LOCAL4 = ; // Note: Not available on Windows and Netware $LOG_LOCAL5 = ; // Note: Not available on Windows and Netware $LOG_LOCAL6 = ; // Note: Not available on Windows and Netware $LOG_LOCAL7 = ; // Note: Not available on Windows and Netware */ $LOG_PID = 1; // log the pid with each message $LOG_CONS = 2; // log on the console if errors in sending $LOG_ODELAY = 4; // delay open until first syslog() (default) $LOG_NDELAY = 8; // don't delay open $LOG_NOWAIT = 16; // don't wait for console forks: DEPRECATED // Note: Not available on BeOS $LOG_PERROR = 32; // log to stderr as well // Note: Not available on AIX }