web/Zend/Log/Writer/Null.php
changeset 0 4eba9c11703f
equal deleted inserted replaced
-1:000000000000 0:4eba9c11703f
       
     1 <?php
       
     2 /**
       
     3  * Zend Framework
       
     4  *
       
     5  * LICENSE
       
     6  *
       
     7  * This source file is subject to the new BSD license that is bundled
       
     8  * with this package in the file LICENSE.txt.
       
     9  * It is also available through the world-wide-web at this URL:
       
    10  * http://framework.zend.com/license/new-bsd
       
    11  * If you did not receive a copy of the license and are unable to
       
    12  * obtain it through the world-wide-web, please send an email
       
    13  * to license@zend.com so we can send you a copy immediately.
       
    14  *
       
    15  * @category   Zend
       
    16  * @package    Zend_Log
       
    17  * @subpackage Writer
       
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    20  * @version    $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
       
    21  */
       
    22 
       
    23 /** Zend_Log_Writer_Abstract */
       
    24 require_once 'Zend/Log/Writer/Abstract.php';
       
    25 
       
    26 /**
       
    27  * @category   Zend
       
    28  * @package    Zend_Log
       
    29  * @subpackage Writer
       
    30  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    31  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    32  * @version    $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
       
    33  */
       
    34 class Zend_Log_Writer_Null extends Zend_Log_Writer_Abstract
       
    35 {
       
    36     /**
       
    37      * Write a message to the log.
       
    38      *
       
    39      * @param  array  $event  event data
       
    40      * @return void
       
    41      */
       
    42     protected function _write($event)
       
    43     {
       
    44     }
       
    45     
       
    46     /**
       
    47      * Create a new instance of Zend_Log_Writer_Null
       
    48      * 
       
    49      * @param  array|Zend_Config $config
       
    50      * @return Zend_Log_Writer_Null
       
    51      * @throws Zend_Log_Exception
       
    52      */
       
    53     static public function factory($config)
       
    54     {
       
    55         return new self();
       
    56     }
       
    57 }