From 8f9ee9ec688b7956a19d5c749dc201333b23e428 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Fri, 27 Apr 2012 09:40:17 -0700 Subject: Issue #720630 by tim.plunkett, kid_icarus, tsphethean: Fix up docs for watchdog, hook_watchdog, and watchdog constants --- includes/bootstrap.inc | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 15dcb9cd3..9f43b9232 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -68,32 +68,32 @@ define('WATCHDOG_EMERGENCY', 0); define('WATCHDOG_ALERT', 1); /** - * Log message severity -- Critical: critical conditions. + * Log message severity -- Critical conditions. */ define('WATCHDOG_CRITICAL', 2); /** - * Log message severity -- Error: error conditions. + * Log message severity -- Error conditions. */ define('WATCHDOG_ERROR', 3); /** - * Log message severity -- Warning: warning conditions. + * Log message severity -- Warning conditions. */ define('WATCHDOG_WARNING', 4); /** - * Log message severity -- Notice: normal but significant condition. + * Log message severity -- Normal but significant conditions. */ define('WATCHDOG_NOTICE', 5); /** - * Log message severity -- Informational: informational messages. + * Log message severity -- Informational messages. */ define('WATCHDOG_INFO', 6); /** - * Log message severity -- Debug: debug-level messages. + * Log message severity -- Debug-level messages. */ define('WATCHDOG_DEBUG', 7); @@ -1691,8 +1691,16 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia * NULL if message is already translated or not possible to * translate. * @param $severity - * The severity of the message, as per RFC 3164. Possible values are - * WATCHDOG_ERROR, WATCHDOG_WARNING, etc. + * The severity of the message; one of the following values as defined in + * @link http://www.faqs.org/rfcs/rfc3164.html RFC 3164: @endlink + * - WATCHDOG_EMERGENCY: Emergency, system is unusable. + * - WATCHDOG_ALERT: Alert, action must be taken immediately. + * - WATCHDOG_CRITICAL: Critical conditions. + * - WATCHDOG_ERROR: Error conditions. + * - WATCHDOG_WARNING: Warning conditions. + * - WATCHDOG_NOTICE: (default) Normal but significant conditions. + * - WATCHDOG_INFO: Informational messages. + * - WATCHDOG_DEBUG: Debug-level messages. * @param $link * A link to associate with the message. * -- cgit v1.2.3