web/lib/Zend/Log/Writer/ZendMonitor.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
--- a/web/lib/Zend/Log/Writer/ZendMonitor.php	Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/ZendMonitor.php	Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
  * @category   Zend
  * @package    Zend_Log
  * @subpackage Writer
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
- * @version    $Id: ZendMonitor.php 23351 2010-11-16 18:09:45Z matthew $
+ * @version    $Id: ZendMonitor.php 24593 2012-01-05 20:35:02Z matthew $
  */
 
 /** Zend_Log_Writer_Abstract */
@@ -27,26 +27,28 @@
  * @category   Zend
  * @package    Zend_Log
  * @subpackage Writer
- * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
- * @version    $Id: ZendMonitor.php 23351 2010-11-16 18:09:45Z matthew $
+ * @version    $Id: ZendMonitor.php 24593 2012-01-05 20:35:02Z matthew $
  */
 class Zend_Log_Writer_ZendMonitor extends Zend_Log_Writer_Abstract
 {
     /**
      * Is Zend Monitor enabled?
-     * @var bool
+     *
+     * @var boolean
      */
     protected $_isEnabled = true;
 
     /**
      * Is this for a Zend Server intance?
-     * @var bool
+     *
+     * @var boolean
      */
     protected $_isZendServer = false;
 
     /**
-     * @throws Zend_Log_Exception if Zend Monitor extension not present
+     * @return void
      */
     public function __construct()
     {
@@ -62,8 +64,7 @@
      * Create a new instance of Zend_Log_Writer_ZendMonitor
      *
      * @param  array|Zend_Config $config
-     * @return Zend_Log_Writer_Syslog
-     * @throws Zend_Log_Exception
+     * @return Zend_Log_Writer_ZendMonitor
      */
     static public function factory($config)
     {
@@ -77,7 +78,7 @@
      * fail silently. You can query this method to determine if the log
      * writer is enabled.
      *
-     * @return bool
+     * @return boolean
      */
     public function isEnabled()
     {
@@ -87,7 +88,7 @@
     /**
      * Log a message to this writer.
      *
-     * @param  array $event  log data event
+     * @param  array $event log data event
      * @return void
      */
     public function write($event)
@@ -102,7 +103,7 @@
     /**
      * Write a message to the log.
      *
-     * @param  array  $event  log data event
+     * @param  array  $event log data event
      * @return void
      */
     protected function _write($event)
@@ -116,10 +117,10 @@
                 // On Zend Server; third argument should be the event
                 zend_monitor_custom_event($priority, $message, $event);
             } else {
-                // On Zend Platform; third argument is severity -- either 
+                // On Zend Platform; third argument is severity -- either
                 // 0 or 1 -- and fourth is optional (event)
                 // Severity is either 0 (normal) or 1 (severe); classifying
-                // notice, info, and debug as "normal", and all others as 
+                // notice, info, and debug as "normal", and all others as
                 // "severe"
                 monitor_custom_event($priority, $message, ($priority > 4) ? 0 : 1, $event);
             }