| Versionen | |
|---|---|
| drupal6 | syslog_watchdog( |
| drupal7 | syslog_watchdog(array $log_entry) |
modules/
<?php
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));
}
?>
Kommentare
Kommentar hinzufügen