function core_watchdog_severity_levels

6.x environment_6.inc core_watchdog_severity_levels()
6.x environment.inc core_watchdog_severity_levels()
6.x environment_7.inc core_watchdog_severity_levels()
3.x environment_7.inc core_watchdog_severity_levels()
3.x environment_6.inc core_watchdog_severity_levels()
3.x environment_5.inc core_watchdog_severity_levels()
4.x environment_6.inc core_watchdog_severity_levels()
4.x environment_5.inc core_watchdog_severity_levels()
4.x environment.inc core_watchdog_severity_levels()
5.x environment_6.inc core_watchdog_severity_levels()
5.x environment.inc core_watchdog_severity_levels()

Helper function to obtain the severity levels based on Drupal version.

This is a copy of watchdog_severity_levels() without t().

Severity levels, as defined in RFC 3164: http://www.ietf.org/rfc/rfc3164.txt.

Return value

Array of watchdog severity levels.

4 calls to core_watchdog_severity_levels()
core_watchdog_format_result in commands/core/watchdog.drush.inc
Format a watchdog database row.
core_watchdog_query in commands/core/watchdog.drush.inc
Build a WHERE snippet based on given parameters.
drush_core_watchdog_list in commands/core/watchdog.drush.inc
Command callback.
system_watchdog in includes/drush.inc
Log Drupal watchdog() calls.

File

commands/core/drupal/environment_7.inc, line 163
Specific functions for a drupal 5 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function core_watchdog_severity_levels() {
  return array(
    WATCHDOG_EMERGENCY => 'emergency',
    WATCHDOG_ALERT => 'alert',
    WATCHDOG_CRITICAL => 'critical',
    WATCHDOG_ERROR => 'error',
    WATCHDOG_WARNING => 'warning',
    WATCHDOG_NOTICE => 'notice',
    WATCHDOG_INFO => 'info',
    WATCHDOG_DEBUG => 'debug',
  );
}