| 81 | } |
| 82 | |
| 83 | void LogTable::FetchRows(const AddRowFunction& addRowFn) |
| 84 | { |
| 85 | Log(LogDebug, "LogTable") |
| 86 | << "Pre-selecting log file from " << m_TimeFrom << " until " << m_TimeUntil; |
| 87 | |
| 88 | /* create log file index */ |
| 89 | LivestatusLogUtility::CreateLogIndex(m_CompatLogPath, m_LogFileIndex); |
| 90 | |
| 91 | /* generate log cache */ |
| 92 | LivestatusLogUtility::CreateLogCache(m_LogFileIndex, this, m_TimeFrom, m_TimeUntil, addRowFn); |
| 93 | } |
| 94 | |
| 95 | /* gets called in LivestatusLogUtility::CreateLogCache */ |
| 96 | void LogTable::UpdateLogEntries(const Dictionary::Ptr& log_entry_attrs, int lineno, const AddRowFunction& addRowFn) |