function watchdog_severity_levels

7.x common.inc watchdog_severity_levels()
6.x common.inc watchdog_severity_levels()

Return value

Array of the possible severity levels for log messages.

See also

watchdog

2 calls to watchdog_severity_levels()
dblog_event in drupal-6.x/modules/dblog/dblog.admin.inc
Menu callback; displays details about a log message.
dblog_filters in drupal-6.x/modules/dblog/dblog.admin.inc
List dblog administration filters that can be applied.

File

drupal-6.x/includes/common.inc, line 3746
Common functions that many Drupal modules will need to reference.

Code

function watchdog_severity_levels() {
  return array(
    WATCHDOG_EMERG => 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'),
  );
}