function syslog_watchdog
Same name and namespace in other branches
- 7.x drupal-7.x/modules/syslog/syslog.module \syslog_watchdog()
Archivo
- drupal-6.x/
modules/ syslog/ syslog.module, line 77 - Redirects logging messages to syslog.
Código
function syslog_watchdog($entry) {
static $log_init = FALSE;
if (!$log_init) {
$log_init = TRUE;
openlog(variable_get('syslog_identity', 'drupal'), LOG_NDELAY, variable_get('syslog_facility', DEFAULT_SYSLOG_FACILITY));
}
syslog($entry['severity'], theme('syslog_format', $entry));
}