framework/logging/CDbLogRoute.php
protected function processLogs($logs)
	{
		$command=$this->getDbConnection()->createCommand();
		foreach($logs as $log)
		{
			$command->insert($this->logTableName,array(
				'level'=>$log[1],
				'category'=>$log[2],
				'logtime'=>(int)$log[3],
				'message'=>$log[0],
			));
		}
	}
protected function processLogs($logs)
	{
		$command=$this->getDbConnection()->createCommand();
		foreach($logs as $log)
		{
			$command->insert($this->logTableName,array(
				'level'=>$log[1],
				'category'=>$log[2],
				'logtime'=>(int)$log[3],
				'message'=>$log[0],
			));
		}
	}
protected function processLogs ( $ logs ) { $ command = $ this -> getDbConnection ( ) -> createCommand ( ) ; foreach ( $ logs as $ log ) { $ command -> insert ( $ this -> logTableName , array ( 'level' => $ log [ 1 ] , 'category' => $ log [ 2 ] , 'logtime' => ( int ) $ log [ 3 ] , 'message' => $ log [ 0 ] , ) ) ; } }
Stores log messages into database.
@param array $logs list of log messages
Stores log messages into database .