framework/logging/CSysLogRoute.php
protected function processLogs($logs)
	{
		static $syslogLevels=array(
			CLogger::LEVEL_TRACE=>LOG_DEBUG,
			CLogger::LEVEL_WARNING=>LOG_WARNING,
			CLogger::LEVEL_ERROR=>LOG_ERR,
			CLogger::LEVEL_INFO=>LOG_INFO,
			CLogger::LEVEL_PROFILE=>LOG_DEBUG,
		);

		openlog($this->identity,LOG_ODELAY|LOG_PID,$this->facility);
		foreach($logs as $log)
			syslog($syslogLevels[$log[1]],$this->formatLogMessage(str_replace("\n",', ',$log[0]),$log[1],$log[2],$log[3]));
		closelog();
	}
protected function processLogs($logs)
	{
		static $syslogLevels=array(
			CLogger::LEVEL_TRACE=>LOG_DEBUG,
			CLogger::LEVEL_WARNING=>LOG_WARNING,
			CLogger::LEVEL_ERROR=>LOG_ERR,
			CLogger::LEVEL_INFO=>LOG_INFO,
			CLogger::LEVEL_PROFILE=>LOG_DEBUG,
		);

		openlog($this->identity,LOG_ODELAY|LOG_PID,$this->facility);
		foreach($logs as $log)
			syslog($syslogLevels[$log[1]],$this->formatLogMessage(str_replace("\n",', ',$log[0]),$log[1],$log[2],$log[3]));
		closelog();
	}
protected function processLogs ( $ logs ) { static $ syslogLevels = array ( CLogger :: LEVEL_TRACE => LOG_DEBUG , CLogger :: LEVEL_WARNING => LOG_WARNING , CLogger :: LEVEL_ERROR => LOG_ERR , CLogger :: LEVEL_INFO => LOG_INFO , CLogger :: LEVEL_PROFILE => LOG_DEBUG , ) ; openlog ( $ this -> identity , LOG_ODELAY | LOG_PID , $ this -> facility ) ; foreach ( $ logs as $ log ) syslog ( $ syslogLevels [ $ log [ 1 ] ] , $ this -> formatLogMessage ( str_replace ( "\n" , ', ' , $ log [ 0 ] ) , $ log [ 1 ] , $ log [ 2 ] , $ log [ 3 ] ) ) ; closelog ( ) ; }
Sends log messages to syslog.
@param array $logs list of log messages.
Sends log messages to syslog .