function errorlog_watchdog in Logging and alerts 7
Same name and namespace in other branches
- 6.2 errorlog/errorlog.module \errorlog_watchdog()
- 6 errorlog/errorlog.module \errorlog_watchdog()
- 7.2 errorlog/errorlog.module \errorlog_watchdog()
Implements hook_watchdog().
File
- errorlog/
errorlog.module, line 43 - Drupal Module: Web Server Logging and Alerts
Code
function errorlog_watchdog($log) {
$language = user_preferred_language($log['user']);
$message = theme('errorlog_format', $log);
if (variable_get('errorlog_' . $log['severity'], FALSE)) {
error_log($message);
}
}