From 785c17d1999b6d32deedd01376c6023aabb86bb9 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Wed, 15 May 2013 09:52:25 +0200 Subject: [PATCH] Fixing docblocks --- lib/Cake/Log/Engine/SyslogLog.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/Cake/Log/Engine/SyslogLog.php b/lib/Cake/Log/Engine/SyslogLog.php index b71dad41d41..1c2e6ed856c 100644 --- a/lib/Cake/Log/Engine/SyslogLog.php +++ b/lib/Cake/Log/Engine/SyslogLog.php @@ -36,7 +36,10 @@ class SyslogLog extends BaseLog { * this logger * * If you wish to include a prefix to all messages, for instance to identify the - * application or the web server, then use the prefix option. + * application or the web server, then use the prefix option. Please keep in mind + * the prefix is shared by all streams using syslog, as it is dependent of + * the running process. For a local prefix, to be used only by one stream, you + * can use the format key. * * ## Example: * @@ -127,8 +130,9 @@ public function write($type, $message) { /** * Wrapper for openlog call * - * @param int $priority - * @param sting $output + * @param string $ident the prefix to add to all messages logged + * @param int $options the options flags to be used for logged messages + * @param int $facility the stream or facility to log to * @return void */ protected function _open($ident, $options, $facility) { @@ -139,11 +143,11 @@ protected function _open($ident, $options, $facility) { * Wrapper for syslog call * * @param int $priority - * @param sting $output + * @param string $message * @return bool */ - protected function _write($priority, $output) { - return syslog($priority, $output); + protected function _write($priority, $message) { + return syslog($priority, $message); } /**