1 /*
2     SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com>
3 
4     SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <KLocalizedString>
10 
11 #include "fileAnalyzer.h"
12 
13 #include "ksystemlog_debug.h"
14 #include "localLogFileReader.h"
15 #include "parsingHelper.h"
16 
17 #include "apacheAccessLogMode.h"
18 
19 class ApacheAccessAnalyzer : public FileAnalyzer
20 {
21     Q_OBJECT
22 
23 public:
24     explicit ApacheAccessAnalyzer(LogMode *logMode);
25 
~ApacheAccessAnalyzer()26     ~ApacheAccessAnalyzer() override
27     {
28     }
29 
30     LogViewColumns initColumns() override;
31 
32 protected:
33     LogFileReader *createLogFileReader(const LogFile &logFile) override;
34 
35     Analyzer::LogFileSortMode logFileSortMode() override;
36 
37     LogLine *parseMessage(const QString &logLine, const LogFile &originalLogFile) override;
38 };
39 
40