You are here

function logs_http_watchdog in Logs HTTP 7

Implements hook_watchdog().

Register watchdog events.

File

./logs_http.module, line 191
Logs HTTP module.

Code

function logs_http_watchdog(array $log_entry) {
  if ($log_entry['severity'] > variable_get('logs_http_severity_level', WATCHDOG_ERROR)) {

    // Severity level is above the ones we want to log.
    return;
  }
  logs_http_register_event($log_entry);
}