Added MsgParser into database logstream classes as well

This commit is contained in:
Andre Lorbach 2008-09-02 14:54:13 +02:00
parent c5b7ff8e3a
commit f545c7f38a
2 changed files with 9 additions and 1 deletions

View File

@ -257,6 +257,10 @@ class LogStreamDB extends LogStream {
$arrProperitesOut[$property] = '';
}
// Run optional Message Parsers now
if ( isset($arrProperitesOut[SYSLOG_MESSAGE]) )
$this->_logStreamConfigObj->ProcessMsgParsers($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut);
// Set uID to the PropertiesOut! //DEBUG -> $this->_currentRecordNum;
$uID = $arrProperitesOut[SYSLOG_UID] = $this->bufferedRecords[$this->_currentRecordNum][$dbmapping[$szTableType][SYSLOG_UID]];
@ -727,7 +731,7 @@ class LogStreamDB extends LogStream {
// Append LIMIT clause
$szSql .= " LIMIT " . $this->_currentRecordStart . ", " . $this->_logStreamConfigObj->RecordsPerQuery;
echo $szSql . "<br>";
//echo $szSql . "<br>";
// Perform Database Query
$myquery = mysql_query($szSql, $this->_dbhandle);

View File

@ -292,6 +292,10 @@ class LogStreamPDO extends LogStream {
$arrProperitesOut[$property] = '';
}
// Run optional Message Parsers now
if ( isset($arrProperitesOut[SYSLOG_MESSAGE]) )
$this->_logStreamConfigObj->ProcessMsgParsers($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut);
// Set uID to the PropertiesOut! //DEBUG -> $this->_currentRecordNum;
$uID = $arrProperitesOut[SYSLOG_UID] = $this->bufferedRecords[$this->_currentRecordNum][$dbmapping[$szTableType][SYSLOG_UID]];