function watchdog_severity_levels

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

File

includes/common.inc, line 7564
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'),
  );
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/watchdog_severity_levels/7.x