[ZF-10089] Zend_Log
[zend/radio.git] / library / Zend / Log / Writer / Null.php
blob95e4cc9cdd305975dc419c3d40ff9152da1c6dea
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
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.
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$
23 /** Zend_Log_Writer_Abstract */
24 require_once 'Zend/Log/Writer/Abstract.php';
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$
34 class Zend_Log_Writer_Null extends Zend_Log_Writer_Abstract
36 /**
37 * Write a message to the log.
39 * @param array $event event data
40 * @return void
42 protected function _write($event)
46 /**
47 * Create a new instance of Zend_Log_Writer_Null
49 * @param array|Zend_Config $config
50 * @return Zend_Log_Writer_Null
51 * @throws Zend_Log_Exception
53 static public function factory($config)
55 return new self();