framework/logging/CLogRouter.php
public function init()
	{
		parent::init();
		foreach($this->_routes as $name=>$route)
		{
			$route=Yii::createComponent($route);
			$route->init();
			$this->_routes[$name]=$route;
		}
		Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs'));
		Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs'));
	}
public function init()
	{
		parent::init();
		foreach($this->_routes as $name=>$route)
		{
			$route=Yii::createComponent($route);
			$route->init();
			$this->_routes[$name]=$route;
		}
		Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs'));
		Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs'));
	}
public function init ( ) { parent :: init ( ) ; foreach ( $ this -> _routes as $ name => $ route ) { $ route = Yii :: createComponent ( $ route ) ; $ route -> init ( ) ; $ this -> _routes [ $ name ] = $ route ; } Yii :: getLogger ( ) -> attachEventHandler ( 'onFlush' , array ( $ this , 'collectLogs' ) ) ; Yii :: app ( ) -> attachEventHandler ( 'onEndRequest' , array ( $ this , 'processLogs' ) ) ; }
Initializes this application component.
This method is required by the IApplicationComponent interface.
Initializes this application component . This method is required by the IApplicationComponent interface .