function watchdog_severity_levels

8.x common.inc watchdog_severity_levels()

Returns a list of severity levels, as defined in RFC 3164.

Return value

Array of the possible severity levels for log messages.

See also

http://www.ietf.org/rfc/rfc3164.txt

watchdog()

Related topics

2 calls to watchdog_severity_levels()
dblog_event in drupal/core/modules/dblog/dblog.admin.inc
Page callback: Displays details about a specific database log message.
dblog_filters in drupal/core/modules/dblog/dblog.admin.inc
Creates a list of database log administration filters that can be applied.

File

drupal/core/includes/common.inc, line 5497
Common functions that many Drupal modules will need to reference.

Code

function watchdog_severity_levels() {
  return array(
    WATCHDOG_EMERGENCY => t('Emergency'),
    WATCHDOG_ALERT => t('Alert'),
    WATCHDOG_CRITICAL => t('Critical'),
    WATCHDOG_ERROR => t('Error'),
    WATCHDOG_WARNING => t('Warning'),
    WATCHDOG_NOTICE => t('Notice'),
    WATCHDOG_INFO => t('Info'),
    WATCHDOG_DEBUG => t('Debug'),
  );
}