summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index ea1a21a17..0a4bf3902 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2616,3 +2616,22 @@ function drupal_parse_info_file($filename) {
return $info;
}
+
+/**
+ * @return
+ * Array of the possible severity levels for log messages.
+ *
+ * @see watchdog
+ */
+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'),
+ );
+}