From 2e8d29e20878ba2f3e475f62d2ec814cd6729146 Mon Sep 17 00:00:00 2001 From: Valentino Orlandi Date: Sun, 4 Feb 2024 11:40:28 +0100 Subject: [PATCH] Added Craplog lib --- logdoctor/CMakeLists.txt | 1 + logdoctor/modules/craplog/lib.h | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 logdoctor/modules/craplog/lib.h diff --git a/logdoctor/CMakeLists.txt b/logdoctor/CMakeLists.txt index 5b9ce6da..132c19c6 100644 --- a/logdoctor/CMakeLists.txt +++ b/logdoctor/CMakeLists.txt @@ -116,6 +116,7 @@ set(PROJECT_SOURCES modules/warnlists/modules/warnlist_item.h modules/warnlists/modules/warnlist_item.cpp + modules/craplog/lib.h modules/craplog/craplog.h modules/craplog/craplog.cpp modules/craplog/modules/lib.h diff --git a/logdoctor/modules/craplog/lib.h b/logdoctor/modules/craplog/lib.h new file mode 100644 index 00000000..90c3b3f8 --- /dev/null +++ b/logdoctor/modules/craplog/lib.h @@ -0,0 +1,36 @@ +#ifndef LOGDOCTOR__CRAPLOG__LIB_H +#define LOGDOCTOR__CRAPLOG__LIB_H + + +#include + + +enum class LogField +{ + Year, + Month, + Day, + Hour, + Minute, + Second, + // request + Protocol, + Method, + Uri, + Query, + // server + ResponseCode, + TimeTaken, + BytesSent, + BytesReceived, + // client + Client, + Cookie, + UserAgent, + Referrer +}; + +Q_DECLARE_METATYPE(LogField) + + +#endif // LOGDOCTOR__CRAPLOG__LIB_H