framework/logging/CLogRoute.php
public function collectLogs($logger, $processLogs=false)
	{
		$logs=$logger->getLogs($this->levels,$this->categories,$this->except);
		$this->logs=empty($this->logs) ? $logs : array_merge($this->logs,$logs);
		if($processLogs && !empty($this->logs))
		{
			if($this->filter!==null)
				Yii::createComponent($this->filter)->filter($this->logs);
			if($this->logs!==array())
				$this->processLogs($this->logs);
			$this->logs=array();
		}
	}
public function collectLogs($logger, $processLogs=false)
	{
		$logs=$logger->getLogs($this->levels,$this->categories,$this->except);
		$this->logs=empty($this->logs) ? $logs : array_merge($this->logs,$logs);
		if($processLogs && !empty($this->logs))
		{
			if($this->filter!==null)
				Yii::createComponent($this->filter)->filter($this->logs);
			if($this->logs!==array())
				$this->processLogs($this->logs);
			$this->logs=array();
		}
	}
public function collectLogs ( $ logger , $ processLogs = false ) { $ logs = $ logger -> getLogs ( $ this -> levels , $ this -> categories , $ this -> except ) ; $ this -> logs = empty ( $ this -> logs ) ? $ logs : array_merge ( $ this -> logs , $ logs ) ; if ( $ processLogs && ! empty ( $ this -> logs ) ) { if ( $ this -> filter !== null ) Yii :: createComponent ( $ this -> filter ) -> filter ( $ this -> logs ) ; if ( $ this -> logs !== array ( ) ) $ this -> processLogs ( $ this -> logs ) ; $ this -> logs = array ( ) ; } }
Retrieves filtered log messages from logger for further processing.
@param CLogger $logger logger instance
@param boolean $processLogs whether to process the logs after they are collected from the logger
Retrieves filtered log messages from logger for further processing .