|
Server IP : 127.0.0.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586 User : GerbangSIPAD ( 0) PHP Version : 5.6.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/xampp5/htdocs/bhumie/yii/framework/logging/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* CChainedLogFilter class file
*
* @author Carsten Brandt <mail@cebe.cc>
* @link http://www.yiiframework.com/
* @copyright 2008-2013 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* CChainedLogFilter allows you to attach multiple log filters to a log route (See {@link CLogRoute::$filter} for details).
*
* @author Carsten Brandt <mail@cebe.cc>
* @package system.logging
* @since 1.1.13
*/
class CChainedLogFilter extends CComponent implements ILogFilter
{
/**
* @var array list of filters to apply to the logs.
* The value of each array element will be passed to {@link Yii::createComponent} to create
* a log filter object. As a result, this can be either a string representing the
* filter class name or an array representing the filter configuration.
* In general, the log filter classes should implement {@link ILogFilter} interface.
* Filters will be applied in the order they are defined.
*/
public $filters=array();
/**
* Filters the given log messages by applying all filters configured by {@link filters}.
* @param array $logs the log messages
*/
public function filter(&$logs)
{
foreach($this->filters as $filter)
Yii::createComponent($filter)->filter($logs);
}
}