function 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 modules/dblog/dblog.admin.inc
Page callback: Displays details about a specific database log message.
dblog_filters in modules/dblog/dblog.admin.inc
Creates a list of database log administration filters that can be applied.

File

includes/common.inc, line 7781

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'),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.