From e4c9cb3644007e1e0021e79f27d9ac9ee4397161 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Fri, 30 Dec 2011 15:33:44 +0900 Subject: [PATCH] Issue #1368872 by agentrickard, oriol_e9g: Clean up API docs for syslog. --- core/modules/syslog/syslog.module | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/modules/syslog/syslog.module b/core/modules/syslog/syslog.module index c4ee38252889..7c7bf40b74b7 100644 --- a/core/modules/syslog/syslog.module +++ b/core/modules/syslog/syslog.module @@ -6,6 +6,15 @@ */ if (defined('LOG_LOCAL0')) { + /** + * Sets the proper logging facility. + * + * Note that LOG_LOCAL0 through LOG_LOCAL7 are not available on Windows, so we + * check for availability. If LOG_LOCAL0 is defined by the PHP environment, we + * set that as the default; if not, we use LOG_USER. + * + * @see http://php.net/manual/function.syslog.php + */ define('DEFAULT_SYSLOG_FACILITY', LOG_LOCAL0); } else { -- GitLab