Settings

This module allows you to filter your watchdog messages based on severity level. It can also deduplicate the watchdog messages.

New log types will only be available to filtering after the first message has been logged using the log type.

hook_watchdog_filtering() is also exposed by this module. Example from watchdog_filtering.api.php:

<?php
/**
 * Filter watchdog log entry. Works similar to hook_node_access().
 *
 * @param array $log_entry
 *   The watchdog log entry.
 */
function hook_watchdog_filtering(array $log_entry) {
  // Never watchdog page not found messages.
  if ($log_entry['type'] == 'page not found') {
    return WATCHDOG_FILTERING_EXCLUDE;
  }

  // "Always" watchdog php messages.
  if ($log_entry['type'] == 'php') {
    return WATCHDOG_FILTERING_INCLUDE;
  }

  // Don't affect filtering on other messages.
  return WATCHDOG_FILTERING_IGNORE;
}
?>
Supporting organizations: 

Project information

Releases