framework/logging/CLogFilter.php
public function filter(&$logs)
	{
		if (!empty($logs))
		{
			if(($message=$this->getContext())!=='')
				array_unshift($logs,array($message,CLogger::LEVEL_INFO,'application',YII_BEGIN_TIME));
			$this->format($logs);
		}
		return $logs;
	}
public function filter(&$logs)
	{
		if (!empty($logs))
		{
			if(($message=$this->getContext())!=='')
				array_unshift($logs,array($message,CLogger::LEVEL_INFO,'application',YII_BEGIN_TIME));
			$this->format($logs);
		}
		return $logs;
	}
public function filter ( & $ logs ) { if ( ! empty ( $ logs ) ) { if ( ( $ message = $ this -> getContext ( ) ) !== '' ) array_unshift ( $ logs , array ( $ message , CLogger :: LEVEL_INFO , 'application' , YII_BEGIN_TIME ) ) ; $ this -> format ( $ logs ) ; } return $ logs ; }
Filters the given log messages.
This is the main method of CLogFilter. It processes the log messages
by adding context information, etc.
@param array $logs the log messages
@return array
Filters the given log messages . This is the main method of CLogFilter . It processes the log messages by adding context information etc .