diff --git a/MAC_build_update.sh b/MAC_build_update.sh index 626039dc..14dcb85e 100644 --- a/MAC_build_update.sh +++ b/MAC_build_update.sh @@ -94,7 +94,7 @@ then fi -cp ./osx_bundle/{bin,doc,Resources,info.plist} ../build/LogDoctor.app/Contents/ +cp -r ./osx_bundle/{bin,doc,Resources,info.plist} ../build/LogDoctor.app/Contents/ sudo rm -r /Applications/LogDoctor.app if [[ "$?" != "0" ]] then diff --git a/docs/html/annotated.html b/docs/html/annotated.html index 0bbd5828..b942e05f 100644 --- a/docs/html/annotated.html +++ b/docs/html/annotated.html @@ -86,43 +86,45 @@ $(function() {
This is the complete list of members for Craphelp, including all inherited members.
helpLogsFormat(const std::string &path, const QFont &font, const int &color_scheme_id) | Craphelp | |
helpLogsFormat(const std::string &path, const QFont &font, const int &color_scheme_id) const | Craphelp | |
helpLogsFormatDefault(const std::string &path, const QFont &font, const int &color_scheme_id) const | Craphelp |
Public Member Functions | |
void | helpLogsFormat (const std::string &path, const QFont &font, const int &color_scheme_id) |
Provides help about log formats. More... | |
void | helpLogsFormat (const std::string &path, const QFont &font, const int &color_scheme_id) const |
Provides help about log formats. More... | |
void | helpLogsFormatDefault (const std::string &path, const QFont &font, const int &color_scheme_id) const |
Provides help about log formats. More... | |
Displays an help window
void Craphelp::helpLogsFormatDefault | +( | +const std::string & | +path, | +
+ | + | const QFont & | +font, | +
+ | + | const int & | +color_scheme_id | +
+ | ) | +const | +
Provides help about log formats.
+Shows the built-in default version in case the file for the currently selected locale was not found or unreadable
font | The font to be used |
color_scheme_id | The ID of the color-scheme to be used |
This is the complete list of members for Crapinfo, including all inherited members.
Crapinfo(const int &window_theme_id, const QString &version, const QString &exec_path, const QString &conf_path, const QString &logdoc_path, QWidget *parent=nullptr) | Crapinfo | |
Crapinfo(const int &window_theme_id, const QString &version, const QString &exec_path, const QString &conf_path, const QString &logdoc_path, QWidget *parent=nullptr) | Crapinfo | explicit |
|
+ +explicit | +
Class constructor.
diff --git a/docs/html/classCraplog-members.html b/docs/html/classCraplog-members.html index c94083d3..7132358b 100644 --- a/docs/html/classCraplog-members.html +++ b/docs/html/classCraplog-members.html @@ -77,68 +77,56 @@ $(function() {This is the complete list of members for Craplog, including all inherited members.
APACHE_ID | Craplog | private | |||
APACHE_ID | Craplog | private | |||
blacklistAdd(const int &web_server_id, const int &log_field_id, const std::string &new_item) | Craplog | ||||
blacklistMoveDown(const int &web_server_id, const int &log_field_id, const std::string &item) | Craplog | ||||
blacklistMoveUp(const int &web_server_id, const int &log_field_id, const std::string &item) | Craplog | ||||
blacklistRemove(const int &web_server_id, const int &log_field_id, const std::string &item) | Craplog | ||||
changeIisLogsBaseNames(const int &module_id) | Craplog | private | |||
checkStuff() | Craplog | ||||
clearDataCollection() | Craplog | ||||
collectPerfData() | Craplog | ||||
editedDatabase() | Craplog | ||||
getBlacklist(const int &web_server_id, const int &log_field_id) | Craplog | ||||
getCurrentLogFormat() | Craplog | ||||
getCurrentWSID() | Craplog | ||||
getDialogsLevel() | Craplog | ||||
getHashesDatabasePath() | Craplog | ||||
getLogFileItem(const QString &file_name) | Craplog | ||||
getLogsFormat(const int &web_server_id) | Craplog | ||||
getLogsFormatSample(const int &web_server_id) | Craplog | ||||
getLogsFormatString(const int &web_server_id) | Craplog | ||||
getLogsList(const bool &fresh=false) | Craplog | ||||
getLogsListSize() | Craplog | ||||
getLogsPath(const int &web_server) | Craplog | ||||
getParsedLines() | Craplog | ||||
getPerfSize() | Craplog | ||||
getStatsDatabasePath() | Craplog | ||||
getTotalSize() | Craplog | ||||
getWarningSize() | Craplog | ||||
getWarnlist(const int &web_server_id, const int &log_field_id) | Craplog | ||||
IIS_ID | Craplog | private | |||
isBlacklistUsed(const int &web_server_id, const int &log_field_id) | Craplog | ||||
isFileNameValid(const std::string &name) | Craplog | ||||
isParsing() | Craplog | ||||
isWarnlistUsed(const int &web_server_id, const int &log_field_id) | Craplog | ||||
isWorking() | Craplog | ||||
joinLogLines() | Craplog | private | |||
makeChart(const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, QChartView *size_chart) | Craplog | ||||
NGINX_ID | Craplog | private | |||
parseLogLines() | Craplog | private | |||
printableSize(const unsigned int &bytes) | Craplog | private | |||
run() | Craplog | ||||
sanitizeBWitem(const int &log_field_id, const std::string &new_item) | Craplog | private | |||
scanLogsDir() | Craplog | private | |||
setApacheLogFormat(const std::string &format_string) | Craplog | ||||
setBlacklist(const int &web_server_id, const int &log_field_id, const std::vector< std::string > &new_list) | Craplog | ||||
setBlacklistUsed(const int &web_server_id, const int &log_field_id, const bool &used) | Craplog | ||||
setCurrentLogFormat() | Craplog | private | |||
setCurrentWSID(const int &web_server_id) | Craplog | ||||
setDialogsLevel(const int &new_level) | Craplog | ||||
setHashesDatabasePath(const std::string &path) | Craplog | ||||
setIisLogFormat(const std::string &format_string, const int &log_module) | Craplog | ||||
setLogFileSelected(const QString &file_name) | Craplog | ||||
setLogsPath(const int &web_server, const std::string &new_path) | Craplog | ||||
setNginxLogFormat(const std::string &format_string) | Craplog | ||||
setStatsDatabasePath(const std::string &path) | Craplog | ||||
setWarningSize(const long &new_size) | Craplog | ||||
setWarnlist(const int &web_server_id, const int &log_field_id, const std::vector< std::string > &new_list) | Craplog | ||||
setWarnlistUsed(const int &web_server_id, const int &log_field_id, const bool &used) | Craplog | ||||
startWorking() | Craplog | private | |||
stopWorking() | Craplog | private | |||
storeLogLines() | Craplog | private | |||
sumBlacklistededSize(const unsigned int &size) | Craplog | ||||
sumWarningsSize(const unsigned int &size) | Craplog | ||||
editedDatabase() const | Craplog | ||||
getBlacklist(const int &web_server_id, const int &log_field_id) const | Craplog | ||||
getCurrentLogFormat() const | Craplog | ||||
getCurrentWSID() const | Craplog | ||||
getDialogsLevel() const | Craplog | ||||
getHashesDatabasePath() const | Craplog | ||||
getLogFileItem(const QString &file_name) const | Craplog | ||||
getLogsFormat(const int &web_server_id) const | Craplog | ||||
getLogsFormatSample(const int &web_server_id) const | Craplog | ||||
getLogsFormatString(const int &web_server_id) const | Craplog | ||||
getLogsList(const bool fresh=false) | Craplog | ||||
getLogsListSize() const | Craplog | ||||
getLogsPath(const int &web_server) const | Craplog | ||||
getParsedLines() | Craplog | ||||
getParsedSize() | Craplog | ||||
getParsingSpeed() | Craplog | ||||
getStatsDatabasePath() const | Craplog | ||||
getWarningSize() const | Craplog | ||||
getWarnlist(const int &web_server_id, const int &log_field_id) const | Craplog | ||||
IIS_ID | Craplog | private | |||
isBlacklistUsed(const int &web_server_id, const int &log_field_id) const | Craplog | ||||
isFileNameValid(const std::string &name) const | Craplog | ||||
isParsing() const | Craplog | ||||
isWarnlistUsed(const int &web_server_id, const int &log_field_id) const | Craplog | ||||
makeChart(const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, QChartView *size_chart) const | Craplog | ||||
NGINX_ID | Craplog | private | |||
sanitizeBWitem(const int &log_field_id, const std::string &new_item) const | Craplog | private | |||
scanLogsDir() | Craplog | private | |||
setApacheLogFormat(const std::string &format_string) | Craplog | ||||
setBlacklist(const int &web_server_id, const int &log_field_id, const std::vector< std::string > &new_list) | Craplog | ||||
setBlacklistUsed(const int &web_server_id, const int &log_field_id, const bool &used) | Craplog | ||||
setCurrentLogFormat() | Craplog | private | |||
setCurrentWSID(const int &web_server_id) | Craplog | ||||
setDialogsLevel(const int &new_level) | Craplog | ||||
setHashesDatabasePath(const std::string &path) | Craplog | ||||
setIisLogFormat(const std::string &format_string, const int &log_module) | Craplog | ||||
setLogFileSelected(const QString &file_name) | Craplog | ||||
setLogsPath(const int &web_server, const std::string &new_path) | Craplog | ||||
setNginxLogFormat(const std::string &format_string) | Craplog | ||||
setStatsDatabasePath(const std::string &path) | Craplog | ||||
setWarningSize(const unsigned &new_size) | Craplog | ||||
setWarnlist(const int &web_server_id, const int &log_field_id, const std::vector< std::string > &new_list) | Craplog | ||||
setWarnlistUsed(const int &web_server_id, const int &log_field_id, const bool &used) | Craplog | ||||
warnlistAdd(const int &web_server_id, const int &log_field_id, const std::string &new_item) | Craplog | ||||
warnlistMoveDown(const int &web_server_id, const int &log_field_id, const std::string &item) | Craplog | ||||
warnlistMoveUp(const int &web_server_id, const int &log_field_id, const std::string &item) | Craplog |
Classes |
Public Member Functions | |
void | run () |
Main work method. More... | |
-const int & | getDialogsLevel () |
Returns the Dialogs level. | |
+const int & | getDialogsLevel () const |
Returns the Dialogs level. | |
void | setDialogsLevel (const int &new_level) |
Sets the new Dialogs level. | |
-const std::string & | getStatsDatabasePath () |
Returns the path of the logs Collection database. | |
-const std::string & | getHashesDatabasePath () |
Returns the path of the log files' Hashes database. | |
+const std::string & | getStatsDatabasePath () const |
Returns the path of the logs Collection database. | |
+const std::string & | getHashesDatabasePath () const |
Returns the path of the log files' Hashes database. | |
void | setStatsDatabasePath (const std::string &path) |
Sets the new path for the logs Collection database. More... | |
ge
void | setCurrentWSID (const int &web_server_id) | | Sets the currently used Web Server ID. More... | | const int & | getCurrentWSID () | | Returns the currently used Web Server ID. More... | | const FormatOps::LogsFormat & | getCurrentLogFormat () | | Returns the currently used LogsFormat. More... | | const std::string & | getLogsPath (const int &web_server) | | Returns the logs' path for the given web Server. More... | | const int & | getCurrentWSID () const | | Returns the currently used Web Server ID. More... | | const FormatOps::LogsFormat & | getCurrentLogFormat () const | | Returns the currently used LogsFormat. More... | | const std::string & | getLogsPath (const int &web_server) const | | Returns the logs' path for the given web Server. More... | | void | setLogsPath (const int &web_server, const std::string &new_path) | | Sets a new path for the given Web Server to search the logs in. More... | | const bool | isFileNameValid (const std::string &name) | | Checks if a file name respects the relative criterions. More... | | const std::vector< LogFile > & | getLogsList (const bool &fresh=false) | | Returns the list of log files. More... | | const int | getLogsListSize () | | Returns the amount of log files in the list. More... | | const LogFile & | getLogFileItem (const QString &file_name) | | Returns the LogFile instance of the given file. More... | | const bool | isFileNameValid (const std::string &name) const | | Checks if a file name respects the relative criterions. More... | | const std::vector< LogFile > & | getLogsList (const bool fresh=false) | | Returns the list of log files. More... | | const int | getLogsListSize () const | | Returns the amount of log files in the list. More... | | const LogFile & | getLogFileItem (const QString &file_name) const | | Returns the LogFile instance of the given file. More... | | const bool | setLogFileSelected (const QString &file_name) | | Sets a file in the list as selected. More... | | | ge
const bool | setIisLogFormat (const std::string &format_string, const int &log_module) | | Sets the IIS LogsFormat from the given format string. More... | | const std::string & | getLogsFormatString (const int &web_server_id) | | Returns the logs format string for the given Web Server. More... | | const FormatOps::LogsFormat & | getLogsFormat (const int &web_server_id) | | Returns the LogsFormat currently set for the given Web Server. More... | | const QString | getLogsFormatSample (const int &web_server_id) | | Returns a sample log line for the given Web Server using the relative LogsFormat. More... | |
-const long & | getWarningSize () | | Returns the currently set warning size for the log files. | |
-void | setWarningSize (const long &new_size) | | Sets the new warning size for the log files. | | const bool & | isBlacklistUsed (const int &web_server_id, const int &log_field_id) | | Returns whether the relative blacklist is set to be used or not. More... | | const bool & | isWarnlistUsed (const int &web_server_id, const int &log_field_id) | | Returns whether the relative warnlist is set to be used or not. More... | | const std::string & | getLogsFormatString (const int &web_server_id) const | | Returns the logs format string for the given Web Server. More... | | const FormatOps::LogsFormat & | getLogsFormat (const int &web_server_id) const | | Returns the LogsFormat currently set for the given Web Server. More... | | const QString | getLogsFormatSample (const int &web_server_id) const | | Returns a sample log line for the given Web Server using the relative LogsFormat. More... | |
+const unsigned & | getWarningSize () const | | Returns the currently set warning size for the log files. | |
+void | setWarningSize (const unsigned &new_size) | | Sets the new warning size for the log files. | | const bool & | isBlacklistUsed (const int &web_server_id, const int &log_field_id) const | | Returns whether the relative blacklist is set to be used or not. More... | | const bool & | isWarnlistUsed (const int &web_server_id, const int &log_field_id) const | | Returns whether the relative warnlist is set to be used or not. More... | | void | setBlacklistUsed (const int &web_server_id, const int &log_field_id, const bool &used) | | Sets the relative blacklist to be used or not. More... | | void | setWarnlistUsed (const int &web_server_id, const int &log_field_id, const bool &used) | | Sets the relative warnlist to be used or not. More... | | const std::vector< std::string > & | getBlacklist (const int &web_server_id, const int &log_field_id) | | Returns the relative items list. More... | | const std::vector< std::string > & | getWarnlist (const int &web_server_id, const int &log_field_id) | | Returns the relative items list. More... | | const std::vector< std::string > & | getBlacklist (const int &web_server_id, const int &log_field_id) const | | Returns the relative items list. More... | | const std::vector< std::string > & | getWarnlist (const int &web_server_id, const int &log_field_id) const | | Returns the relative items list. More... | | void | setBlacklist (const int &web_server_id, const int &log_field_id, const std::vector< std::string > &new_list) | | Sets the relative items list. More... | | | setWarningSize (c |
const int | warnlistMoveDown (const int &web_server_id, const int &log_field_id, const std::string &item) |
Moves an item one position down in the relative list. More... | |
-const bool & | editedDatabase () |
Returns whether the database has been edited or not during the process. | |
const bool | checkStuff () |
Various checks to be made before starting a new process. More... | |
-void | clearDataCollection () |
Erases the data collection when a process is done. | |
-const bool & | isWorking () |
Returns whether the process is still running or not. | |
-const bool & | isParsing () |
Returns whether the process is still parsing or not. | |
void | collectPerfData () |
Collects performances data from the sub-modules. More... | |
-void | sumWarningsSize (const unsigned int &size) |
Sums the given size to the warnlisted size. | |
-void | sumBlacklistededSize (const unsigned int &size) |
Sums the given size to the blacklisted size. | |
-const unsigned int & | getPerfSize () |
Returns the size to be displayed in the main window. | |
-const unsigned int & | getTotalSize () |
Returns the total logs size. | |
-const unsigned int & | getParsedLines () |
Returns the parsed logs lines. | |
void | makeChart (const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, QChartView *size_chart) |
Builds and draws the chart to be displayed in the main window. More... | |
+const bool | isParsing () const |
Returns whether the database has been edited or not during the process. | |
+const bool | editedDatabase () const |
Returns whether the database has been edited or not during the process. | |
+const unsigned | getParsedSize () |
Returns the total logs size. | |
+const unsigned | getParsedLines () |
Returns the parsed logs lines. | |
+const QString | getParsingSpeed () |
Returns the speed on parsing logs. | |
void | makeChart (const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, QChartView *size_chart) const |
Builds and draws the chart to be displayed in the main window. More... | |
Private Member Functions | |||||
void | startWorking () | ||||
Sets the working state. More... | |||||
void | stopWorking () | ||||
Un-sets the working state. More... | |||||
const QString | printableSize (const unsigned int &bytes) | ||||
Returns a printable size to be displayed in the chart, including the suffix. More... | |||||
void | joinLogLines () | ||||
Reads the selected files and append the resulting lines to the list. More... | |||||
void | parseLogLines () | ||||
Parses the lines in the list and stores their data in the data collection. More... | |||||
void | storeLogLines () | ||||
Stores the data collection in the database. More... | |||||
const std::string | sanitizeBWitem (const int &log_field_id, const std::string &new_item) | ||||
Ssnitizes an item removing the unwanted elements. More... | |||||
const std::string | sanitizeBWitem (const int &log_field_id, const std::string &new_item) const | ||||
Ssnitizes an item removing the unwanted elements. More... | |||||
void | changeIisLogsBaseNames (const int &module_id) | ||||
Changes the name criterions for IIS logs files names depending on the given module. More... | |||||
scanLogsDir ()Detailed Description
@@ -575,28 +541,8 @@ const unsigned int | IIS_ID<
-
-◆ collectPerfData()- -
-
-
-
-
-
-
-Collects performances data from the sub-modules. - - -◆ getBlacklist()+ +◆ getBlacklist()
@@ -616,7 +562,7 @@ const unsigned int | IIS_ID<
| ) |
-
+ | const |
|
false
-
|
- -private | -
Reads the selected files and append the resulting lines to the list.
-GenericException |
-
|
- -private | -
Parses the lines in the list and stores their data in the data collection.
-
-
|
- -private | -
Returns a printable size to be displayed in the chart, including the suffix.
-bytes | The size in bytes |
void Craplog::run | -( | -) | -- |
Main work method.
-Manages the operations which need to be done to parse the logs when the START button is pressed
- -
-
|
- -private | -
Sets the working state.
-
-
|
- -private | -
Un-sets the working state.
-
-
|
- -private | -
Stores the data collection in the database.
-+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for CraplogWorker, including all inherited members.
+APACHE_ID | CraplogWorker | private |
IIS_ID | CraplogWorker | private |
joinLogLines() | CraplogWorker | private |
NGINX_ID | CraplogWorker | private |
parseLogLines() | CraplogWorker | private |
storeData(QSqlDatabase &db) | CraplogWorker | private |
storeLogLines() | CraplogWorker | private |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Private Member Functions | |
void | joinLogLines () |
Reads the selected files and append the resulting lines to the list. More... | |
void | parseLogLines () |
Parses the lines in the list and stores their data in the data collection. More... | |
void | storeLogLines () |
Handles the process of storing data in the database. More... | |
const bool | storeData (QSqlDatabase &db) |
Stores the data collection in the logs Collection database. More... | |
+
|
+ +private | +
Reads the selected files and append the resulting lines to the list.
+GenericException |
+
|
+ +private | +
Parses the lines in the list and stores their data in the data collection.
+LogParserException |
+
|
+ +private | +
Stores the data collection in the logs Collection database.
+db | A database instance, already initizlized |
WebServerException |
+
|
+ +private | +
Handles the process of storing data in the database.
+abortRequest() | Crapup | signal |
closeEvent(QCloseEvent *event) override | Crapup | privateslot |
Crapup(const int &window_theme_id, const QString &icons_theme, QWidget *parent=nullptr) | Crapup | |
Crapup(const int &window_theme_id, const QString &icons_theme, QWidget *parent=nullptr) | Crapup | explicit |
deleteReply() | Crapup | private |
requestTimeout() | Crapup | privateslot |
rotateImg() | Crapup | privateslot |
versionCheck(const float ¤t_version) | Crapup | |
versionCheck(const float current_version) | Crapup |
Private Slots | deleteReply ()
+
Class constructor. @@ -205,8 +213,8 @@ void | deleteReply ()
-
-◆ versionCheck()+ +◆ versionCheck()
@@ -214,7 +222,7 @@ void | deleteReply () | void Crapup::versionCheck | ( | -const float & | +const float | current_version | ) | diff --git a/docs/html/classCrapview-members.html b/docs/html/classCrapview-members.html index 558ba493..1d25dfa1 100644 --- a/docs/html/classCrapview-members.html +++ b/docs/html/classCrapview-members.html @@ -77,33 +77,29 @@ $(function() { |
calcGlobals(std::vector< std::tuple< QString, QString > > &recur_list, std::vector< std::tuple< QString, QString > > &traffic_list, std::vector< std::tuple< QString, QString > > &perf_list, std::vector< QString > &work_list, const QString &web_server) | Crapview | |
calcGlobals(std::vector< std::tuple< QString, QString > > &recur_list, std::vector< std::tuple< QString, QString > > &traffic_list, std::vector< std::tuple< QString, QString > > &perf_list, std::vector< QString > &work_list, const QString &web_server) const | Crapview | |
clearDates() | Crapview | |
drawCount(QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &field) | Crapview | |
drawDay(QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field, const QString &filter) | Crapview | |
drawRelat(QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field_1, const QString &filter_1, const QString &field_2, const QString &filter_2) | Crapview | |
drawSpeed(QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &protocol, const QString &method, const QString &uri, const QString &query, const QString &response) | Crapview | |
drawWarn(QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &hour) | Crapview | |
getDays(const QString &web_server, const QString &year, const QString &month) | Crapview | |
getDialogsLevel() | Crapview | |
getFields(const std::string &tab) | Crapview | |
getHours() | Crapview | |
getLogFieldID(const QString &field_str) | Crapview | |
getLogFieldString(const int &field_id) | Crapview | |
getMonthNumber(const QString &month_str) | Crapview | |
getMonths(const QString &web_server, const QString &year) | Crapview | |
getYears(const QString &web_server) | Crapview | |
parseBooleanFilter(const QString &filter_str) | Crapview | |
parseNumericFilter(const QString &filter_str) | Crapview | |
parseTextualFilter(const QString &filter_str) | Crapview | |
printableDate(const int &year, const int &month, const int &day) | Crapview | private |
printableTime(const int &hour, const int &minute, const int &second) | Crapview | private |
printableWarn(const int &value) | Crapview | private |
refreshDates() | Crapview | |
setChartsTheme(const int &new_theme_id) | Crapview | |
drawCount(QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &field) const | Crapview | |
drawDay(QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field, const QString &filter) const | Crapview | |
drawRelat(QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field_1, const QString &filter_1, const QString &field_2, const QString &filter_2) const | Crapview | |
drawSpeed(QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &protocol, const QString &method, const QString &uri, const QString &query, const QString &response) const | Crapview | |
drawWarn(QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &hour) const | Crapview | |
getDays(const QString &web_server, const QString &year, const QString &month) const | Crapview | |
getDialogsLevel() const | Crapview | |
getFields(const std::string &tab) const | Crapview | |
getHours() const | Crapview | |
getLogFieldID(const QString &field_str) const | Crapview | |
getLogFieldString(const int field_id) const | Crapview | |
getMonthNumber(const QString &month_str) const | Crapview | |
getMonths(const QString &web_server, const QString &year) const | Crapview | |
getYears(const QString &web_server) const | Crapview | |
parseBooleanFilter(const QString &filter_str) const | Crapview | |
parseNumericFilter(const QString &filter_str) const | Crapview | |
parseTextualFilter(const QString &filter_str) const | Crapview | |
refreshDates() | Crapview | |
setDbPath(const std::string &path) | Crapview | |
setDialogsLevel(const int &new_level) | Crapview | |
updateWarn(QTableWidget *table, const QString &web_server) | Crapview | |
setDialogsLevel(const int new_level) | Crapview | |
updateWarn(QTableWidget *table, const QString &web_server) const | Crapview |
#include <crapview.h>
Public Member Functions | |
-const int & | getDialogsLevel () |
Returns the Dialogs level. | |
-void | setDialogsLevel (const int &new_level) |
Sets the new Dialogs level. | |
-void | setChartsTheme (const int &new_theme_id) |
Sets the new charts theme to use. | |
+const int & | getDialogsLevel () const |
Returns the Dialogs level. | |
+void | setDialogsLevel (const int new_level) |
Sets the new Dialogs level. | |
void | setDbPath (const std::string &path) |
Sets the new path for the logs Collection database. More... | |
const QString | parseBooleanFilter (const QString &filter_str) |
Parses a filter for a database field with boolean type. More... | |
const QString | parseNumericFilter (const QString &filter_str) |
Parses a filter for a log field with integer type. More... | |
const QString | parseTextualFilter (const QString &filter_str) |
Parses a filter for a log field with text type. More... | |
const QString | getLogFieldString (const int &field_id) |
Returns the printable log field corresponding to the given ID. More... | |
const int | getLogFieldID (const QString &field_str) |
Returns the log field ID corresponding to the given printable field. More... | |
const int | getMonthNumber (const QString &month_str) |
Returns the month number corresponding to the given printable month. More... | |
const QString | parseBooleanFilter (const QString &filter_str) const |
Parses a filter for a database field with boolean type. More... | |
const QString | parseNumericFilter (const QString &filter_str) const |
Parses a filter for a log field with integer type. More... | |
const QString | parseTextualFilter (const QString &filter_str) const |
Parses a filter for a log field with text type. More... | |
const QString | getLogFieldString (const int field_id) const |
Returns the printable log field corresponding to the given ID. More... | |
const int | getLogFieldID (const QString &field_str) const |
Returns the log field ID corresponding to the given printable field. More... | |
const int | getMonthNumber (const QString &month_str) const |
Returns the month number corresponding to the given printable month. More... | |
void | refreshDates () |
Refreshes the list of the dates which are available in the database. | refreshDates () void | clearDates () |
Erases the list of available dates. | |
const QStringList | getYears (const QString &web_server) |
Returns le list of available years, for the given web server. More... | |
const QStringList | getMonths (const QString &web_server, const QString &year) |
Returns le list of available months in the given year, for the given web server. More... | |
const QStringList | getDays (const QString &web_server, const QString &year, const QString &month) |
Returns le list of available days in the given month and year, for the given web server. More... | |
const QStringList | getHours () |
Returns all the hours of the day. More... | |
const QStringList | getFields (const std::string &tab) |
Returns a list of the fields for the given tab. More... | |
void | updateWarn (QTableWidget *table, const QString &web_server) |
Updates the database applying the changes which have been made to the table. More... | |
void | drawWarn (QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &hour) |
Draws the chart and fills the table for the Warnings stats. More... | |
void | drawSpeed (QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &protocol, const QString &method, const QString &uri, const QString &query, const QString &response) |
Draws the chart and fills the table for the Speed stats. More... | |
void | drawCount (QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &field) |
Draws the chart and fills the table for the Counts stats. More... | |
void | drawDay (QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field, const QString &filter) |
Draws the chart for the Daytime stats. More... | |
void | drawRelat (QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field_1, const QString &filter_1, const QString &field_2, const QString &filter_2) |
Draws the chart for the Relational stats. More... | |
const bool | calcGlobals (std::vector< std::tuple< QString, QString > > &recur_list, std::vector< std::tuple< QString, QString > > &traffic_list, std::vector< std::tuple< QString, QString > > &perf_list, std::vector< QString > &work_list, const QString &web_server) |
Retrieves the data to fill the Globals stats. More... | |
-Private Member Functions | |
const QString | printableDate (const int &year, const int &month, const int &day) |
Returns a string of the given date in the format YYY-MM-DD. More... | |
const QString | printableTime (const int &hour, const int &minute, const int &second) |
Returns a string of the given time in the format HH:MM:SS. More... | |
const QString | printableWarn (const int &value) |
Returns a string corresponding to the given value. More... | |
const QStringList | getYears (const QString &web_server) const |
Returns le list of available years, for the given web server. More... | |
const QStringList | getMonths (const QString &web_server, const QString &year) const |
Returns le list of available months in the given year, for the given web server. More... | |
const QStringList | getDays (const QString &web_server, const QString &year, const QString &month) const |
Returns le list of available days in the given month and year, for the given web server. More... | |
const QStringList | getHours () const |
Returns all the hours of the day. More... | |
const QStringList | getFields (const std::string &tab) const |
Returns a list of the fields for the given tab. More... | |
void | updateWarn (QTableWidget *table, const QString &web_server) const |
Updates the database applying the changes which have been made to the table. More... | |
void | drawWarn (QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &hour) const |
Draws the chart and fills the table for the Warnings stats. More... | |
void | drawSpeed (QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &protocol, const QString &method, const QString &uri, const QString &query, const QString &response) const |
Draws the chart and fills the table for the Speed stats. More... | |
void | drawCount (QTableWidget *table, QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &field) const |
Draws the chart and fills the table for the Counts stats. More... | |
void | drawDay (QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field, const QString &filter) const |
Draws the chart for the Daytime stats. More... | |
void | drawRelat (QtCharts::QChartView *chart, const QChart::ChartTheme &theme, const std::unordered_map< std::string, QFont > &fonts, const QString &web_server, const QString &from_year, const QString &from_month, const QString &from_day, const QString &to_year, const QString &to_month, const QString &to_day, const QString &field_1, const QString &filter_1, const QString &field_2, const QString &filter_2) const |
Draws the chart for the Relational stats. More... | |
const bool | calcGlobals (std::vector< std::tuple< QString, QString > > &recur_list, std::vector< std::tuple< QString, QString > > &traffic_list, std::vector< std::tuple< QString, QString > > &perf_list, std::vector< QString > &work_list, const QString &web_server) const |
Retrieves the data to fill the Globals stats. More... | |
Performs operations related to the visualization of the statistics
Parses a filter for a database field with boolean type.
-Boolean filters are not locale-dependant, meaning that English syntax must be used (TRUE,FALSE)
field_str | The given filter |
-
|
- -private | -
Returns a string of the given date in the format YYY-MM-DD.
-year | The year |
month | The month |
day | The day |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
-year | The year |
month | The month |
day | The day |
-
|
- -private | -
Returns a string of the given time in the format HH:MM:SS.
-hour | The hour |
minut | The minute |
second | The second |
-
|
- -private | -
Returns a string corresponding to the given value.
-Used to convert numeric booleans [0,1] to string [FALSE,TRUE]
value | The value to convert |
This is the complete list of members for CrissCross, including all inherited members.
AI_makeChoice() | CrissCross | private |
AI_makeChoice() const | CrissCross | private |
AI_playTurn() | CrissCross | private |
AI_updateWeights() | CrissCross | private |
checkVictory() | CrissCross | private |
draw() | CrissCross | private |
endTurn() | CrissCross | private |
gameDraw() | CrissCross | private |
gameDraw() const | CrissCross | private |
isPlayerTurn() | CrissCross | private |
nextTurn() | CrissCross | private |
victory() | CrissCross | private | isPlayerTurn | checkVictory () |
Checks whether somebody won or not. | ||
-const bool | gameDraw () | |
Checks whether the game is draw or not. | ||
+const bool | gameDraw () const | |
Checks whether the game is draw or not. | ||
void | victory () | |
Someone won, process the victory. | AI_playTurn () | void | AI_updateWeights () |
Updates the weights of the tiles. More... | ||
const unsigned int | AI_makeChoice () | |
Makes the choice depending on the weights. More... | ||
const unsigned int | AI_makeChoice () const | |
Makes the choice depending on the weights. More... | ||
Player vs AI criss-cross game
This is the complete list of members for DbQuery, including all inherited members.
getDaytimeCounts(std::tuple< bool, std::unordered_map< int, std::unordered_map< int, int > > > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_, const QString &field_filter) | DbQuery | |
getDbField(const QString &tr_fld) | DbQuery | private |
getGlobalCounts(const QString &web_server, const std::unordered_map< int, std::unordered_map< int, std::vector< int > > > &dates, std::vector< std::unordered_map< QString, int > > &recurs, std::tuple< QString, int > &traf_date, std::unordered_map< int, double > &traf_day, std::unordered_map< int, double > &traf_hour, std::vector< long long > &perf_time, std::vector< long long > &perf_sent, std::vector< long long > &perf_receiv, long &req_count) | DbQuery | |
getItemsCount(std::tuple< bool, std::vector< std::tuple< QString, int > > > &result, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &log_field) | DbQuery | |
getMinuteGap(const int &minute, const int &gap=10) | DbQuery | private |
getMonthDays(const int &year, const int &month) | DbQuery | private |
getMonthNumber(const QString &month_str) | DbQuery | private |
getMonthsCount(const int &from_year, const int &from_month, const int &to_year, const int &to_month) | DbQuery | private |
getRelationalCountsDay(std::tuple< bool, std::vector< std::tuple< long long, int > > > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) | DbQuery | |
getRelationalCountsPeriod(std::tuple< bool, std::vector< std::tuple< long long, int > > > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) | DbQuery | |
getSpeedData(std::tuple< bool, std::vector< std::tuple< long long, std::vector< QString > > > > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &protocol_f, const QString &method_f, const QString &uri_f, const QString &query_f, const QString &response_f) | DbQuery | |
getWarnCounts(std::tuple< bool, std::vector< std::vector< std::vector< std::vector< QString > > > > > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &hour_) | DbQuery | |
refreshDates(std::tuple< bool, std::unordered_map< int, std::unordered_map< int, std::unordered_map< int, std::vector< int > > > > > &result) | DbQuery | |
setDbPath(const std::string &path) | DbQuery | |
setDialogLevel(const int &new_level) | DbQuery | |
updateWarnings(const QString &web_server, const std::vector< std::tuple< int, int > > &updates) | DbQuery | |
countDays(const int from_year, const int from_month, const int from_day, const int to_year, const int to_month, const int to_day) const | DbQuery | private |
countMonths(const int &from_year, const int &from_month, const int &to_year, const int &to_month) const | DbQuery | private |
getDaytimeCounts(Result< stats_day_items_t > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_, const QString &field_filter) const | DbQuery | |
getDbField(const QString &tr_fld) const | DbQuery | private |
getGlobalCounts(const QString &web_server, const std::map< int, std::map< int, std::vector< int > > > &dates, std::vector< std::unordered_map< QString, unsigned > > &recurs, std::tuple< QString, int > &traf_date, std::unordered_map< int, double > &traf_day, std::unordered_map< int, double > &traf_hour, std::vector< long long > &perf_time, std::vector< long long > &perf_sent, std::vector< long long > &perf_receiv, long &req_count) const | DbQuery | |
getItemsCount(Result< stats_count_items_t > &result, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &log_field) const | DbQuery | |
getMinuteGap(const int minute, const int gap=10) const | DbQuery | private |
getMonthDays(const int year, const int month) const | DbQuery | private |
getMonthNumber(const QString &month_str) const | DbQuery | private |
getRelationalCountsDay(Result< stats_relat_items_t > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) const | DbQuery | |
getRelationalCountsPeriod(Result< stats_relat_items_t > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) const | DbQuery | |
getSpeedData(Result< stats_speed_items_t > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &protocol_f, const QString &method_f, const QString &uri_f, const QString &query_f, const QString &response_f) const | DbQuery | |
getWarnCounts(Result< stats_warn_items_t > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &hour_) const | DbQuery | |
refreshDates(Result< stats_dates_t > &result) | DbQuery | |
setDbPath(const std::string &path) | DbQuery | |
setDialogLevel(const int new_level) | DbQuery | |
updateWarnings(const QString &web_server, const std::vector< std::tuple< int, int > > &updates) const | DbQuery |
Public Member Functions | |
-void | setDialogLevel (const int &new_level) |
Returns the Dialogs level. | |
+void | setDialogLevel (const int new_level) |
Returns the Dialogs level. | |
void | setDbPath (const std::string &path) |
Sets the path for the logs Collection database. More... | |
void | refreshDates (std::tuple< bool, std::unordered_map< int, std::unordered_map< int, std::unordered_map< int, std::vector< int > > > > > &result) |
Refreshes the dates which are available in the database. More... | |
void | updateWarnings (const QString &web_server, const std::vector< std::tuple< int, int > > &updates) |
Updates the database applying the changes made in the Warnings statistics table. More... | |
void | getWarnCounts (std::tuple< bool, std::vector< std::vector< std::vector< std::vector< QString > > > > > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &hour_) |
Retrieves the data needed for the Warnings statistics. More... | |
void | getSpeedData (std::tuple< bool, std::vector< std::tuple< long long, std::vector< QString > > > > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &protocol_f, const QString &method_f, const QString &uri_f, const QString &query_f, const QString &response_f) |
Retrieves the data needed for the Speed statistics. More... | |
void | getItemsCount (std::tuple< bool, std::vector< std::tuple< QString, int > > > &result, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &log_field) |
Retrieves the data needed for the Counts statistics. More... | |
void | getDaytimeCounts (std::tuple< bool, std::unordered_map< int, std::unordered_map< int, int > > > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_, const QString &field_filter) |
Retrieves the data needed for the Daytime statistics. More... | |
void | getRelationalCountsDay (std::tuple< bool, std::vector< std::tuple< long long, int > > > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) |
Retrieves the data needed for the Relationsl statistics. More... | |
void | getRelationalCountsPeriod (std::tuple< bool, std::vector< std::tuple< long long, int > > > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) |
Retrieves the data needed for the Relational statistics. More... | |
const bool | getGlobalCounts (const QString &web_server, const std::unordered_map< int, std::unordered_map< int, std::vector< int > > > &dates, std::vector< std::unordered_map< QString, int > > &recurs, std::tuple< QString, int > &traf_date, std::unordered_map< int, double > &traf_day, std::unordered_map< int, double > &traf_hour, std::vector< long long > &perf_time, std::vector< long long > &perf_sent, std::vector< long long > &perf_receiv, long &req_count) |
Retrieves the data needed for the Global statistics. More... | |
void | refreshDates (Result< stats_dates_t > &result) |
Refreshes the dates which are available in the database. More... | |
void | updateWarnings (const QString &web_server, const std::vector< std::tuple< int, int > > &updates) const |
Updates the database applying the changes made in the Warnings statistics table. More... | |
void | getWarnCounts (Result< stats_warn_items_t > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &hour_) const |
Retrieves the data needed for the Warnings statistics. More... | |
void | getSpeedData (Result< stats_speed_items_t > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &protocol_f, const QString &method_f, const QString &uri_f, const QString &query_f, const QString &response_f) const |
Retrieves the data needed for the Speed statistics. More... | |
void | getItemsCount (Result< stats_count_items_t > &result, const QString &web_server, const QString &year, const QString &month, const QString &day, const QString &log_field) const |
Retrieves the data needed for the Counts statistics. More... | |
void | getDaytimeCounts (Result< stats_day_items_t > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_, const QString &field_filter) const |
Retrieves the data needed for the Daytime statistics. More... | |
void | getRelationalCountsDay (Result< stats_relat_items_t > &result, const QString &web_server, const QString &year_, const QString &month_, const QString &day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) const |
Retrieves the data needed for the Relationsl statistics. More... | |
void | getRelationalCountsPeriod (Result< stats_relat_items_t > &result, const QString &web_server, const QString &from_year_, const QString &from_month_, const QString &from_day_, const QString &to_year_, const QString &to_month_, const QString &to_day_, const QString &log_field_1_, const QString &field_filter_1, const QString &log_field_2_, const QString &field_filter_2) const |
Retrieves the data needed for the Relational statistics. More... | |
const bool | getGlobalCounts (const QString &web_server, const std::map< int, std::map< int, std::vector< int > > > &dates, std::vector< std::unordered_map< QString, unsigned > > &recurs, std::tuple< QString, int > &traf_date, std::unordered_map< int, double > &traf_day, std::unordered_map< int, double > &traf_hour, std::vector< long long > &perf_time, std::vector< long long > &perf_sent, std::vector< long long > &perf_receiv, long &req_count) const |
Retrieves the data needed for the Global statistics. More... | |
Private Member Functions | |
const QString | getDbField (const QString &tr_fld) |
Returns the database field corresponding to the relative log field. More... | |
const int | getMinuteGap (const int &minute, const int &gap=10) |
Returns the minute gap for the given minute with the given gap. More... | |
const int | getMonthDays (const int &year, const int &month) |
Returns the number of days for a given month. More... | |
const int | getMonthNumber (const QString &month_str) |
Returns the month number in the year. More... | |
const int | getMonthsCount (const int &from_year, const int &from_month, const int &to_year, const int &to_month) |
Returns the number of months in a given period. More... | |
const QString | getDbField (const QString &tr_fld) const |
Returns the database field corresponding to the relative log field. More... | |
const int | getMinuteGap (const int minute, const int gap=10) const |
Returns the minute gap for the given minute with the given gap. More... | |
const int | getMonthDays (const int year, const int month) const |
Returns the number of days for a given month. More... | |
const int | getMonthNumber (const QString &month_str) const |
Returns the month number in the year. More... | |
const int | countDays (const int from_year, const int from_month, const int from_day, const int to_year, const int to_month, const int to_day) const |
Returns the number of days in a given period. More... | |
const int | countMonths (const int &from_year, const int &from_month, const int &to_year, const int &to_month) const |
Returns the number of months in a given period. More... | |
+
|
+ +private | +
Returns the number of days in a given period.
+from_year | The initial year |
from_month | The initial month |
from_day | The initial day |
to_year | The final Year |
to_month | The final month |
to_day | The final day |
DateTimeException |
+
|
+ +private | +
Returns the number of months in a given period.
+from_year | The initial year |
from_month | The initial month |
to_year | The final Year |
to_month | The final month |
10
-
|
- -private | -
Returns the number of months in a given period.
-from_year | The initial year |
from_month | The initial month |
to_year | The final Year |
to_month | The final month |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
-from_year | The initial year |
from_month | The initial month |
to_year | The final Year |
to_month | The final month |
DateTimeException |
This is the complete list of members for DialogBool, including all inherited members.
DialogBool(const QString &title, const QString &text, QWidget *parent=nullptr) | DialogBool | |
DialogBool(const QString &title, const QString &text, QWidget *parent=nullptr) | DialogBool | explicit |
on_button_NO_clicked() | DialogBool | privateslot |
on_button_YES_clicked() | DialogBool | privateslot |
|
+ +explicit | +
Dialog constructor.
diff --git a/docs/html/classDialogDia-members.html b/docs/html/classDialogDia-members.html index 5c4a8596..b00d17fa 100644 --- a/docs/html/classDialogDia-members.html +++ b/docs/html/classDialogDia-members.html @@ -77,7 +77,7 @@ $(function() {This is the complete list of members for DialogDia, including all inherited members.
DialogDia(const QString &title, const QString &text, const bool &ignore=true, const bool &discard=true, const bool &abort=true, QWidget *parent=nullptr) | DialogDia | ||||
DialogDia(const QString &title, const QString &text, const bool &ignore=true, const bool &discard=true, const bool &abort=true, QWidget *parent=nullptr) | DialogDia | explicit | |||
on_button_ABORT_clicked() | DialogDia | privateslot | |||
on_button_DISCARD_clicked() | DialogDia | privateslot | |||
on_button_IGNORE_clicked() | DialogDia | privateslot | on_button_ABORT_click
+
Dialog constructor. diff --git a/docs/html/classDialogMsg-members.html b/docs/html/classDialogMsg-members.html index 69be2f33..6c954238 100644 --- a/docs/html/classDialogMsg-members.html +++ b/docs/html/classDialogMsg-members.html @@ -77,7 +77,7 @@ $(function() {This is the complete list of members for DialogMsg, including all inherited members.
| on_button_Ok_clicked<
+
Dialog constructor. diff --git a/docs/html/classDonutBreakdown.html b/docs/html/classDonutBreakdown.html index 12f9e5c5..e3ccbc12 100644 --- a/docs/html/classDonutBreakdown.html +++ b/docs/html/classDonutBreakdown.html @@ -152,7 +152,7 @@ void | updateLegendMarkers |
This is the complete list of members for Food, including all inherited members.
img_rat | Food | private |
inTile(const unsigned int &x, const unsigned int &y) | Food | |
inTile(const unsigned int x, const unsigned int y) const | Food | |
movable | Food | private |
move(Snake &snake) | Food | |
spawn(Snake &snake, Snake &snake_) | Food | |
update(const unsigned int &new_x, const unsigned int &new_y) | Food | |
move(const Snake &snake) | Food | |
spawn(const Snake &snake, const Snake &snake_) | Food | |
update(const unsigned int new_x, const unsigned int new_y) | Food | |
x | Food | private |
X() | Food | |
X() const | Food | |
y | Food | private |
Y() | Food | |
Y() const | Food |
Public Member Functions | |
-const unsigned int & | X () |
Returns the position on the X-axis. | |
const unsigned int & | Y () |
Returns the position on the Y-axis. More... | |
-const bool | inTile (const unsigned int &x, const unsigned int &y) |
Checks whether is there a part of the snake in the given position. | |
-void | spawn (Snake &snake, Snake &snake_) |
Spawns the egg/rat in a new position. | |
-void | move (Snake &snake) |
Moves the rat. | |
-void | update (const unsigned int &new_x, const unsigned int &new_y) |
Updates the position and direction of the entity. | |
+const unsigned int & | X () const |
Returns the position on the X-axis. | |
const unsigned int & | Y () const |
Returns the position on the Y-axis. More... | |
+const bool | inTile (const unsigned int x, const unsigned int y) const |
Checks whether is there a part of the snake in the given position. | |
+void | spawn (const Snake &snake, const Snake &snake_) |
Spawns the egg/rat in a new position. | |
+void | move (const Snake &snake) |
Moves the rat. | |
+void | update (const unsigned int new_x, const unsigned int new_y) |
Updates the position and direction of the entity. | |
Private Attributes | y |
This is the complete list of members for FormatOps, including all inherited members.
APACHE_ALF | FormatOps | private |
checkIisString(const std::string &string) | FormatOps | private |
countNewLines(const std::string &initial, const std::string &final, const std::vector< std::string > &separators) | FormatOps | private |
findNginxFieldEnd(const std::string &string, const int &start) | FormatOps | private |
getApacheLogSample(const LogsFormat &log_format) | FormatOps | |
getIisLogSample(const LogsFormat &log_format) | FormatOps | |
getNginxLogSample(const LogsFormat &log_format) | FormatOps | |
checkIisString(const std::string &string) const | FormatOps | private |
countNewLines(const std::string &initial, const std::string &final, const std::vector< std::string > &separators) const | FormatOps | private |
findNginxFieldEnd(const std::string &string, const int start) const | FormatOps | private |
getApacheLogSample(const LogsFormat &log_format) const | FormatOps | |
getIisLogSample(const LogsFormat &log_format) const | FormatOps | |
getNginxLogSample(const LogsFormat &log_format) const | FormatOps | |
IIS_ALF | FormatOps | private |
NGINX_ALF | FormatOps | private |
parseApacheEscapes(const std::string &string, const bool &strftime=false) | FormatOps | private |
parseNginxEscapes(const std::string &string) | FormatOps | private |
processApacheFormatString(const std::string &format_string) | FormatOps | |
processIisFormatString(const std::string &format_string, const int &log_module) | FormatOps | |
processNginxFormatString(const std::string &format_string) | FormatOps | |
parseApacheEscapes(const std::string &string, const bool strftime=false) const | FormatOps | private |
parseNginxEscapes(const std::string &string) const | FormatOps | private |
processApacheFormatString(const std::string &format_string) const | FormatOps | |
processIisFormatString(const std::string &format_string, const int &log_module) const | FormatOps | |
processNginxFormatString(const std::string &format_string) const | FormatOps |
Public Member Functions | |
const LogsFormat | processApacheFormatString (const std::string &format_string) |
Processes the given string to extrapolate the format for Apache2. More... | |
const LogsFormat | processNginxFormatString (const std::string &format_string) |
Processes the given string to extrapolate the format for Nginx. More... | |
const LogsFormat | processIisFormatString (const std::string &format_string, const int &log_module) |
Processes the given string to extrapolate the format for the IIS. More... | |
const QString | getApacheLogSample (const LogsFormat &log_format) |
Returns a log line sample based on the given format. More... | |
const QString | getNginxLogSample (const LogsFormat &log_format) |
Returns a log line sample based on the given format. More... | |
const QString | getIisLogSample (const LogsFormat &log_format) |
Returns a log line sample based on the given format. More... | |
const LogsFormat | processApacheFormatString (const std::string &format_string) const |
Processes the given string to extrapolate the format for Apache2. More... | |
const LogsFormat | processNginxFormatString (const std::string &format_string) const |
Processes the given string to extrapolate the format for Nginx. More... | |
const LogsFormat | processIisFormatString (const std::string &format_string, const int &log_module) const |
Processes the given string to extrapolate the format for the IIS. More... | |
const QString | getApacheLogSample (const LogsFormat &log_format) const |
Returns a log line sample based on the given format. More... | |
const QString | getNginxLogSample (const LogsFormat &log_format) const |
Returns a log line sample based on the given format. More... | |
const QString | getIisLogSample (const LogsFormat &log_format) const |
Returns a log line sample based on the given format. More... | |
Private Member Functions | |
const std::string | parseApacheEscapes (const std::string &string, const bool &strftime=false) |
Parses the escapes (backslashes) and returns the resulting string. More... | |
const std::string | parseNginxEscapes (const std::string &string) |
Parses the escapes (backslashes) and returns the resulting string. More... | |
const int | countNewLines (const std::string &initial, const std::string &final, const std::vector< std::string > &separators) |
Conuts how many new lines are there in the format. More... | |
const size_t | findNginxFieldEnd (const std::string &string, const int &start) |
Finds the end of a Nginx log field. More... | |
void | checkIisString (const std::string &string) |
Checks whether the format string contains invalid characters or not. More... | |
const std::string | parseApacheEscapes (const std::string &string, const bool strftime=false) const |
Parses the escapes (backslashes) and returns the resulting string. More... | |
const std::string | parseNginxEscapes (const std::string &string) const |
Parses the escapes (backslashes) and returns the resulting string. More... | |
const unsigned | countNewLines (const std::string &initial, const std::string &final, const std::vector< std::string > &separators) const |
Conuts how many new lines are there in the format. More... | |
const size_t | findNginxFieldEnd (const std::string &string, const int start) const |
Finds the end of a Nginx log field. More... | |
void | checkIisString (const std::string &string) const |
Checks whether the format string contains invalid characters or not. More... | |
Operations for the logs formats
const int FormatOps::countNewLines | +const unsigned FormatOps::countNewLines | ( | const std::string & | initial, | @@ -220,7 +220,7 @@ const std::unordered_map< std::string, std::string >
◆ findNginxFieldEnd()+ +◆ findNginxFieldEnd()
@@ -262,13 +262,13 @@ const std::unordered_map< std::string, std::string > | - | const int & | +const int | start | |
) | -+ | const |
false
This is the complete list of members for HashOps, including all inherited members.
digestFile(const std::string &file_path) | HashOps | |
hasBeenUsed(const std::string &file_hash, const int &web_server_id) | HashOps | |
insertUsedHash(QSqlQuery &query, const QString &db_name, const std::string &hash, const int &web_server_id) | HashOps | |
insertUsedHashes(const std::string &db_path, const std::vector< std::string > &hashes, const int &web_server_id) | HashOps | |
loadUsedHashesLists(const std::string &db_path) | HashOps | |
setDialogLevel(const int &new_level) | HashOps | |
digestFile(const std::string &file_path, std::string &hash) const | HashOps | |
hasBeenUsed(const std::string &file_hash, const int &web_server_id) const | HashOps | |
insertUsedHashes(const std::string &db_path, const std::vector< std::string > &hashes, const int &web_server_id) | HashOps | |
loadUsedHashesLists(const std::string &db_path) | HashOps | |
setDialogLevel(const int &new_level) | HashOps |
Operations for the hashes
std::string HashOps::digestFile | +void HashOps::digestFile | ( | const std::string & | -file_path | ) | +file_path, | +
+ | std::string & | +hash | +||||
+ | ) | +const |
bool HashOps::hasBeenUsed | +const bool HashOps::hasBeenUsed | ( | const std::string & | file_hash, | @@ -164,7 +171,7 @@ voidsetDialogLevel (c |
) | -+ | const |
bool HashOps::insertUsedHash | -( | -QSqlQuery & | -query, | -
- | - | const QString & | -db_name, | -
- | - | const std::string & | -hash, | -
- | - | const int & | -web_server_id | -
- | ) | -- |
Inserts a hashe in the corresponding database table.
-db_query | Query instance, already initialized |
db_name | The name of the database, eventually used by dialogs |
hash | The hash to insert |
web_server_id | The ID of the Web Server which generated the file |
bool HashOps::insertUsedHashes | +const bool HashOps::insertUsedHashes | ( | const std::string & | db_path, | @@ -277,18 +230,17 @@ voidsetDialogLevel (c
◆ loadUsedHashesLists()+ +◆ loadUsedHashesLists()
Detailed Description
@@ -158,7 +123,7 @@ Private Attributes |
Enumerator | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Failed | Failed to determine the type. |
void LogOps::cleanLines | -( | -std::vector< std::string > & | -lines | ) | -- |
Removes commented lines from the given list.
-lines | The lines to clean |
bool LogOps::deepTypeCheck | +const bool LogOps::deepTypeCheck | ( | const std::string & | line, | @@ -221,7 +160,7 @@ Private Attributes|
) | -+ | const |
LogOps::LogType LogOps::defineFileType | +const LogOps::LogType LogOps::defineFileType | ( | const std::vector< std::string > & | lines, | @@ -265,7 +204,7 @@ Private Attributes|
) | -+ | const |
const unsigned LogOps::getParsedLines | -( | -) | -- |
Returns the number of parsed log lines.
-const unsigned LogOps::getParsedSize | -( | -) | -- |
Returns the parsed logs size.
-const unsigned LogOps::getTotalSize | -( | -) | -- |
Returns the total size of the logs lines.
-
-
|
- -private | -
Parses a line to extract data.
-line | The log line to parse |
format | The logs format to use |
LogParserException |
void LogOps::parseLines | -( | -std::vector< std::unordered_map< int, std::string > > & | -data, | -
- | - | const std::vector< std::string > & | -lines, | -
- | - | const FormatOps::LogsFormat & | -format | -
- | ) | -- |
Parses log lines to extract data.
-data | The data collection which will hold the data |
lines | The list of lines to parse |
format | The logs format to use |
LogParserException |
-
|
- -private | -
Number of parsed logs lines.
-
-
|
- -private | -
Size of the parsed logs.
-
-
|
- -private | -
Total size of the parsed logs.
-This is the complete list of members for MainWindow, including all inherited members.
backupDatabase() | MainWindow | private |
basePath(const std::string &path) | MainWindow | private |
checkDataDB() | MainWindow | private |
craplogFinished() | MainWindow | private |
craplogStarted() | MainWindow | private |
defineOSspec() | MainWindow | private |
detectIconsTheme() | MainWindow | private |
geometryFromString(const std::string &geometry) | MainWindow | private |
geometryToString() | MainWindow | private |
list2string(const std::vector< std::string > &list, const bool &user_agent=false) | MainWindow | private |
backupDatabase() const | MainWindow | private |
checkDataDB() | MainWindow | private |
defineOSspec() | MainWindow | private |
detectIconsTheme() | MainWindow | private |
geometryToString() const | MainWindow | private |
list2string(const std::vector< std::string > &list, const bool user_agent=false) const | MainWindow | private |
makeInitialChecks() | MainWindow | private |
menu_actionEnglish_triggered() | MainWindow | privateslot |
printableSize(const int &bytes) | MainWindow | private |
printableSpeed(const int &bytes, const int &secs) | MainWindow | private |
printableTime(const int &seconds) | MainWindow | private |
menu_actionEnglishGb_triggered() | MainWindow | privateslot |
parentPath(const std::string &path) const | MainWindow | private |
readConfigs() | MainWindow | private |
refreshStatsDates() | MainWindow | private |
resolvePath(const std::string &path) | MainWindow | private |
setDbWorkingState(const bool &state) | MainWindow | private |
string2list(const std::string &string, const bool &user_agent=false) | MainWindow | private |
updateUiFonts() | MainWindow | private |
updateUiIcons() | MainWindow | private |
updateUiLanguage() | MainWindow | private |
updateUiTheme() | MainWindow | private |
writeConfigs() | MainWindow | private |
resolvePath(const std::string &path) const | MainWindow | private |
setDbWorkingState(const bool working) | MainWindow | private |
setGeometryFromString(const std::string &geometry) | MainWindow | private |
string2list(const std::string &string, const bool user_agent=false) const | MainWindow | private |
updateUiFonts() | MainWindow | private |
updateUiIcons() | MainWindow | private |
updateUiLanguage() | MainWindow | private |
updateUiTheme() | MainWindow | private |
writeConfigs() | MainWindow | private |
Private Slots | |
void | menu_actionEnglish_triggered () |
void | menu_actionEnglishGb_triggered () |
Private Member Functions | readConfigs () | writeConfigs () | |||||
Writes the current configuration on file. | |||||||
const std::string | list2string (const std::vector< std::string > &list, const bool &user_agent=false) | ||||||
Converts a list of items to a string. More... | |||||||
const std::vector< std::string > | string2list (const std::string &string, const bool &user_agent=false) | ||||||
Retrieves a list of items from the given string. More... | |||||||
const std::string | list2string (const std::vector< std::string > &list, const bool user_agent=false) const | ||||||
Converts a list of items to a string. More... | |||||||
const std::vector< std::string > | string2list (const std::string &string, const bool user_agent=false) const | ||||||
Retrieves a list of items from the given string. More... | |||||||
void | updateUiLanguage () | ||||||
Translates the UI to the selected language. | |||||||
const std::string | geometryToString () | ||||||
Converts the window's geometry to string. More... | |||||||
void | geometryFromString (const std::string &geometry) | ||||||
Retrieves the window geometry from the given string. More... | |||||||
const std::string | geometryToString () const | ||||||
Converts the window's geometry to string. More... | |||||||
void | setGeometryFromString (const std::string &geometry) | ||||||
Retrieves the window geometry from the given string. More... | |||||||
void | detectIconsTheme () | ||||||
Auto-detects the icon-set to use depending on the current window theme. | updateUiTheme ()< void | updateUiFonts () | |||||
Updates the fonts on the window. | |||||||
-const QString | printableSize (const int &bytes) | ||||||
Printable size, including suffix. | |||||||
-const QString | printableTime (const int &seconds) | ||||||
Printable time, including suffix(es) | |||||||
-const QString | printableSpeed (const int &bytes, const int &secs) | ||||||
Printable speed, namely printable size over printable time. | |||||||
-const std::string | resolvePath (const std::string &path) | ||||||
Resolves the given path and returns the canonical path. | |||||||
-const std::string | basePath (const std::string &path) | ||||||
Returns the parent folder of the given path. | |||||||
+const std::string | resolvePath (const std::string &path) const | ||||||
Resolves the given path and returns the canonical path. | |||||||
+const std::string | parentPath (const std::string &path) const | ||||||
Returns the parent folder of the given path. | |||||||
void | makeInitialChecks () | ||||||
Makes the initial integrity checks. | |||||||
-const bool & | checkDataDB () | ||||||
Checks the integrity of the logs data collection database. | |||||||
-void | backupDatabase () | ||||||
Backs-up the logs data collection database. | |||||||
-void | setDbWorkingState (const bool &state) | ||||||
Called when a member begins/ends performing operations on the database. | |||||||
-void | craplogStarted () | ||||||
The logs parser started working. | |||||||
-void | craplogFinished () | ||||||
The logs parser finished working. | |||||||
+const bool | checkDataDB () | ||||||
Checks the integrity of the logs data collection database. | |||||||
+void | backupDatabase () const | ||||||
Backs-up the logs data collection database. | |||||||
+void | setDbWorkingState (const bool working) | ||||||
Called when a member begins/ends performing operations on the database. | |||||||
void | refreshStatsDates () | ||||||
Queries the available dates from the db and apply to the tabs. More... | |||||||
craplogFinished (
The parent window Member Function Documentation- -◆ geometryFromString()- -
-
-
-
-
-
-
-Retrieves the window geometry from the given string. -
◆ geometryToString()+ +◆ geometryToString()
@@ -235,7 +186,7 @@ void | craplogFinished ( | const std::string MainWindow::geometryToString | ( | ) | -+ | const |
false
void MainWindow::menu_actionEnglish_triggered | +void MainWindow::menu_actionEnglishGb_triggered | ( | ) | @@ -351,8 +302,37 @@ void | craplogFinished (
-
-◆ string2list()+ +◆ setGeometryFromString()+ +
+
+
+
+
+
+
+Retrieves the window geometry from the given string. +
◆ string2list()
@@ -369,13 +349,13 @@ void | craplogFinished ( | |||||||||
- | const bool & | +const bool | user_agent = false |
||||||||||||
) | -+ | const |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for PrintSec, including all inherited members.
+printableBool(const int value) | PrintSec | static |
printableDate(const int year, const int month, const int day) | PrintSec | static |
printableSize(const unsigned bytes) | PrintSec | static |
printableSpeed(const unsigned bytes, const unsigned seconds) | PrintSec | static |
printableTime(const unsigned seconds) | PrintSec | static |
printableTime(const int hour, const int minute, const int second) | PrintSec | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Static Public Member Functions | |
static const QString | printableSize (const unsigned bytes) |
Formats the size including the suffix, for display purposes. More... | |
static const QString | printableSpeed (const unsigned bytes, const unsigned seconds) |
Formats the speed including the suffix, for display purposes. More... | |
static const QString | printableTime (const unsigned seconds) |
Formats the time, for display purposes. More... | |
static const QString | printableTime (const int hour, const int minute, const int second) |
Returns a string of the given time in the format HH:MM:SS. More... | |
static const QString | printableDate (const int year, const int month, const int day) |
Returns a string of the given date in the format YYYY-MM-DD. More... | |
static const QString | printableBool (const int value) |
Returns a string corresponding to the given value. More... | |
+
|
+ +static | +
Returns a string corresponding to the given value.
+Used to convert numeric booleans [0,1] to string [FALSE,TRUE]
value | The value to convert |
+
|
+ +static | +
Returns a string of the given date in the format YYYY-MM-DD.
+year | The year (4 digits number) |
month | The month |
day | The day |
+
|
+ +static | +
Formats the size including the suffix, for display purposes.
+bytes | The size in bytes |
+
|
+ +static | +
Formats the speed including the suffix, for display purposes.
+bytes | The size in bytes |
seconds | The number of seconds |
+
|
+ +static | +
Returns a string of the given time in the format HH:MM:SS.
+hour | The hour |
minut | The minute |
second | The second |
+
|
+ +static | +
Formats the time, for display purposes.
+seconds | The number of seconds |
This is the complete list of members for StoreOps, including all inherited members.
+This is the complete list of members for Result< T >, including all inherited members.
storeData(QSqlDatabase &db, Craplog &craplog, const std::vector< std::unordered_map< int, std::string > > &data) | StoreOps | static |
getData() const | Result< T > |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <result.h>
+Public Member Functions | |
+const T & | getData () const |
Returns the data. | |
Holds the result for an operation and the relative data
+This is the complete list of members for Snake, including all inherited members.
direction() | Snake | |
grow(const bool &is_borning) | Snake | private |
inTile(const unsigned int &x, const unsigned int &y, const bool &avoid_tail=true) | Snake | |
direction() const | Snake | |
grow(const bool is_borning) | Snake | private |
inTile(const unsigned int x, const unsigned int y, const bool avoid_tail=true) const | Snake | |
setDirection(const Direction new_direction) | Snake | |
update(QGraphicsScene *field_scene=nullptr, const bool &dry=false, const bool &is_borning=false) | Snake | |
update(QGraphicsScene *field_scene=nullptr, const bool dry=false, const bool is_borning=false) | Snake |
This is the complete list of members for SnakeGame, including all inherited members.
Battle enum value | SnakeGame | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
checkCollision(Snake &snake, Snake &adv_snake, const bool &is_adv) | SnakeGame | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
checkCollision(Snake &snake, Snake &adv_snake, const bool is_adv) | SnakeGame | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Classic enum value | SnakeGame | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
food | SnakeGame | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GameMode enum name | SnakeGame | private | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
void | processNextKeyEvent () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Processes the key events in the queue. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-void | checkCollision (Snake &snake, Snake &adv_snake, const bool &is_adv) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Checks if a snake will collide with another entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+void | checkCollision (Snake &snake, Snake &adv_snake, const bool is_adv) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Checks if a snake will collide with another entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
void | updateGameScore () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Increases/Decreases the player's score by one. |
- |
- LogDoctor 2.00
-
- Parse Apache2/Nginx/IIS logs and create statistics
- |
-
#include <store.h>
-Static Public Member Functions | |
static bool | storeData (QSqlDatabase &db, Craplog &craplog, const std::vector< std::unordered_map< int, std::string > > &data) |
Stores the data collection in the logs Collection database. More... | |
Operations to store logs data
-
-
|
- -static | -
Stores the data collection in the logs Collection database.
-db | A database instance, already initizlized |
craplog | The Craplog instance |
data | The logs data collection |
WebServerException |
This is the complete list of members for StringOps, including all inherited members.
contains(const std::string &str, const std::string &flag) | StringOps | static | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
count(const std::string &str, const std::string &flag, const bool &consecutives=true) | StringOps | static | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
count(const std::string &str, const std::string &flag, const bool consecutives=true) | StringOps | static | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
endsWith(const std::string &str, const std::string &flag) | StringOps | static | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
findLast(const std::string &str, const std::string &flag) | StringOps | static | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
isAlnum(const std::string &str) | StringOps | static |
Static Public Member Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
static const int | count (const std::string &str, const std::string &flag, const bool &consecutives=true) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Count the occurrences of the given sequence in the given string. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
static const int | count (const std::string &str, const std::string &flag, const bool consecutives=true) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Count the occurrences of the given sequence in the given string. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
static const bool | isNumeric (const std::string &str) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Checks whether a string only contains numeric characters. More... | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | const bool & | +const bool | consecutives = true |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getStyleSheet(QString &stylesheet, const QString &icons_theme, const int &theme_id) | StyleSec | static |
getStyleSheet(QString &stylesheet, const QString &icons_theme, const int theme_id) | StyleSec | static |
makeStyleSheet(QString &ss, const std::unordered_map< std::string, QString > &style, const QString &theme) | StyleSec | privatestatic |
Static Public Member Functions | |
static void | getStyleSheet (QString &stylesheet, const QString &icons_theme, const int &theme_id) |
Provides the requested stylesheet. More... | |
static void | getStyleSheet (QString &stylesheet, const QString &icons_theme, const int theme_id) |
Provides the requested stylesheet. More... | |
Static Private Member Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | const int & | +const int | theme_id | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getColorScheme() | TextBrowser | |
getColorSchemeID() | TextBrowser | |
getFont() | TextBrowser | |
getFontFamily() | TextBrowser | |
getWideLinesUsage() | TextBrowser | |
makePreview(QString &content) | TextBrowser | |
getColorScheme() const | TextBrowser | |
getColorSchemeID() const | TextBrowser | |
getFont() const | TextBrowser | |
getFontFamily() const | TextBrowser | |
getWideLinesUsage() const | TextBrowser | |
makePreview(QString &content) const | TextBrowser | |
setColorScheme(const int &color_scheme_id, const std::unordered_map< std::string, QString > &color_scheme) | TextBrowser | |
setFont(const QFont &font) | TextBrowser | |
setWideLinesUsage(const bool &use_wide_lines) | TextBrowser |
Public Member Functions | |
-const bool & | getWideLinesUsage () |
Returns whether the wide lines option is set to be used or not. | |
-const int & | getColorSchemeID () |
Returns the ID of the color scheme in use. | |
-const std::unordered_map< std::string, QString > & | getColorScheme () |
Returns the color scheme in use. | |
-const QString & | getFontFamily () |
Returns the family of the font in use. | |
-const QFont & | getFont () |
Returns the font in use. | |
+const bool & | getWideLinesUsage () const |
Returns whether the wide lines option is set to be used or not. | |
+const int & | getColorSchemeID () const |
Returns the ID of the color scheme in use. | |
+const std::unordered_map< std::string, QString > & | getColorScheme () const |
Returns the color scheme in use. | |
+const QString & | getFontFamily () const |
Returns the family of the font in use. | |
+const QFont & | getFont () const |
Returns the font in use. | |
void | setWideLinesUsage (const bool &use_wide_lines) |
Sets whether to use wide lines or not. | setColorScheme (c void | setFont (const QFont &font) |
Sets the given font as the one in use. | |
void | makePreview (QString &content) |
Builds the preview which will be shown in the configs tab. More... | |
void | makePreview (QString &content) const |
Builds the preview which will be shown in the configs tab. More... | |
Perform operations for files visualization
Public Attributes | ||
name | Craplog::LogFile | |
path | Craplog::LogFile | |
selected | Craplog::LogFile | |
size | Craplog::LogFile | |
size | Craplog::LogFile | |
used_already | Craplog::LogFile |
Web Server specific file names criterions.
-The rules to be used to decide whether a file name is valid or not
The rules to be used to decide whether a file name is valid or not
Structure which holds informations about a log format.
diff --git a/installation_stuff/logdoctor.conf b/installation_stuff/logdoctor.conf index 17eb30b2..e71324a5 100644 --- a/installation_stuff/logdoctor.conf +++ b/installation_stuff/logdoctor.conf @@ -1,5 +1,5 @@ [UI] -Language=en +Language=en_GB RememberGeometry=true Geometry=0,0,800,600,true WindowTheme=0 diff --git a/logdoctor/CMakeLists.txt b/logdoctor/CMakeLists.txt index 2688b926..04f9c1a8 100644 --- a/logdoctor/CMakeLists.txt +++ b/logdoctor/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.5) -project(LogDoctor VERSION 2.02 LANGUAGES CXX) +project(LogDoctor VERSION 2.03 LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) @@ -39,6 +39,10 @@ set(PROJECT_SOURCES utilities/gzip.cpp utilities/io.h utilities/io.cpp + utilities/printables.h + utilities/printables.cpp + utilities/result.h + utilities/result.cpp utilities/rtf.h utilities/rtf.cpp utilities/strings.h @@ -82,8 +86,8 @@ set(PROJECT_SOURCES modules/craplog/modules/logs.cpp modules/craplog/modules/sha256.h modules/craplog/modules/sha256.cpp - modules/craplog/modules/store.h - modules/craplog/modules/store.cpp + modules/craplog/modules/worker.h + modules/craplog/modules/worker.cpp modules/crapview/crapview.h modules/crapview/crapview.cpp diff --git a/logdoctor/games/crisscross/game.cpp b/logdoctor/games/crisscross/game.cpp index fa677d44..afebfeb4 100644 --- a/logdoctor/games/crisscross/game.cpp +++ b/logdoctor/games/crisscross/game.cpp @@ -244,7 +244,7 @@ void CrissCross::victory() } -const bool CrissCross::gameDraw() +const bool CrissCross::gameDraw() const { bool result = false; unsigned int empty_tiles = 9; @@ -319,7 +319,7 @@ void CrissCross::AI_updateWeights() } -const unsigned int CrissCross::AI_makeChoice() +const unsigned int CrissCross::AI_makeChoice() const { // get a list of the heaviest tiles std::vectorThe configuration file should be located at:
/etc/apache2/apache2.conf
"
+ " The line to configure access logs is the one starting with \"LogFormat\" followed by the list of fields codes.
" + "Most commonly used format strings are:
" + "LogFormat \"%h %l %u %t \\\"%r\\\" %>s %O\" common
LogFormat \"%h %l %u %t \\\"%r\\\" %>s %O \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\"\" combined
"
+ " A suggested format string, to allow using the complete set of functionalities of LogDoctor, is:
LogFormat \"%{%F %T}t %H %m %U %q %>s %I %O %D \\\"%{Referer}i\\\" \\\"%{Cookie}i\\\" \\\"%{User-agent}i\\\" %{c}h\" combined
"
+ " The string above should be preferred, but alternatives can be used as well, like:
LogFormat \"%{sec}t \\\"%r\\\" %q %<s %I %O %D \\\"%{Referer}i\\\" \\\"%{Cookie}i\\\" \\\"%{User-agent}i\\\" %h\" combined
"
+ " If you're using your own custom string, please keep in mind that parsing is not magic. When you define your own string, think about which characters can be there in a field and use separators accordingly to not conflict with the field itself.
"
+ " As an example: an URI (%U) can't contain whitespaces, so it is safe to use a space to separe this field by the previous and next one. Instead, the User-Agent (*%{User-agent}i*) may contain spaces, as well as parenthesis, brackets, dashes, etc, so it's better to pick an appropriate separator (double-quotes are a good choice, since they get escaped while logging).
Although Apache2 does support some control-characters (aka escape sequences), it is reccomended to not use them inside format strings.
"
+ " In particular, the carriage return will most-likely overwrite previous fields data, making it very difficult to understand where the current field ends (specially for fields like URIs, queries, user-agents, etc) and nearly impossible to retrieve the overwritten data, which will lead in having a wasted database, un-realistic statistics and/or crashes during execution.
"
+ " About the new line character, it has no sense to use it, if not for testing purposes. The same is true for the horizontal tab, for which is better to use a simple whitespace instead.
"
+ " The only control-characters supported by Apache2 are \n, \t and \r. Any other character will be ignored and treated as text.
Only the following fields will be considered, meaning that only these fields' data will be stored and used for the statistics.
" + "Code | Informations | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%% | " + "The percent sign character, will result in a single percent sign and treated as normal text (from both Apache and LogDoctor). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%t | " + "Time the request was received, in the format [DD/Mon/YYYY:hh:mm:ss ±TZ]. The last number (TZ) indicates the timezone offset from GMT. | " + "||||||||||||||||||||||||||||||||||||||||||||||
%{FORMAT}t | " + "Time the request was received, in the form given by FORMAT, which should be in an extended strftime format. " + " The following format tokens are supported (by LogDoctor, any other than the following will be discarded, even if valid):" + " " + "
" + " " + " Note: time formats sec, msec and usec can't be mixed together or with other formats." + " | ||||||||||||||||||||||||||||||||||||||||||||||
%r | " + "First line of request, equivalent to: %m %U?%q %H. | " + "||||||||||||||||||||||||||||||||||||||||||||||
%H | " + "The request protocol (HTTP/v, HTTPS/v). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%m | " + "The request method (GET, POST, HEAD, ...). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%U | " + "The URI path requested, not including any query string. | " + "||||||||||||||||||||||||||||||||||||||||||||||
%q | " + "Query string (if any). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%s | " + "HTTP Status code at the beginning of the request (exclude redirections statuses). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%>s | " + "Final HTTP Status code (in case requests have been internally redirected). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%I | " + "Bytes received, including request and headers (you need to enable mod_logio to use this). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%O | " + "Bytes sent, including headers (you need to enable mod_logio to use this). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%T | " + "The time taken to serve the request, in seconds. | " + "||||||||||||||||||||||||||||||||||||||||||||||
%{UNIT}T | " + "The time taken to serve the request, in a time unit given by UNIT (only available in 2.4.13 and later). " + " Valid units are:" + " " + "
| "
+ " ||||||||||||||||||||||||||||||||||||||||||||||
%D | " + "The time taken to serve the request, in milliseconds. | " + "||||||||||||||||||||||||||||||||||||||||||||||
%h | " + "IP Address of the client (remote hostname). | " + "||||||||||||||||||||||||||||||||||||||||||||||
%{c}h | " + "Like %h, but always reports on the hostname of the underlying TCP connection and not any modifications to the remote hostname by modules like mod_remoteip. | " + "||||||||||||||||||||||||||||||||||||||||||||||
%{VARNAME}i | " + "The contents of VARNAME: header line(s) in the request sent to the server. " + " Supported varnames (by LogDoctor) are:" + " " + "
| "
+ "
Any field than the ones above won't be considered by LogDoctor.
"
+ " When generating a log sample, these fields will appear as 'DISCARDED'.
"
+ " If you aint using logs for any other purpose, please remove unnecessary fields to make the process faster and reduce the possibility of errors.
The configuration file should be located at:
/usr/local/etc/nginx/nginx.conf
"
+ " The line to configure access logs is the one starting with \"log_format main\" followed by the list of fields codes.
" + "The default logs format string is:
" + "log_format main '$remote_addr - $remote_user [$time_local] \"$request\" $status $bytes_sent \"$http_referer\" \"$http_user_agent\"'
"
+ " The suggested format string, to allow using the most of the functionalities of LogDoctor, is:
log_format main '$time_iso8601 \"$request\" $status $request_length $bytes_sent $request_time \"$http_referer\" \"$http_user_agent\" $remote_addr'
"
+ " When copy-pasting the format string, please remove any identation (if present) and just paste the resulting format string only.
" + "Although Nginx does support some control-characters (aka escape sequences), it is reccomended to not use them inside format strings.
"
+ " In particular, the carriage return will most-likely overwrite previous fields data, making it very difficult to understand where the current field ends (specially for fields like URIs, queries, user-agents, etc) and nearly impossible to retrieve the overwritten data, which will lead in having a wasted database, un-realistic statistics and/or crashes during execution.
"
+ " About the new line character, it has no sense to use it, if not for testing purposes. The same is true for the horizontal tab, for which is better to use a simple whitespace instead.
"
+ " The only control-characters supported by Nginx are \n, \t and \r. Any other character will be ignored and treated as text.
Only the following fields will be considered, meaning that only these fields' data will be stored and used for the statistics.
" + "Code | Informations |
---|---|
$time_local | " + "Date and time in CLF (NCSA) format. | " + "
$time_iso8601 | " + "Date and time in ISO 8601 format. | " + "
$msec | " + "Time since epoch (in seconds, with a milliseconds resolution) at the time of the log write. | " + "
$request | " + "First line of request, equivalent to: $request_method $request_uri $server_protocol. | " + "
$server_protocol | " + "The request protocol (HTTP/v, HTTPS/v). | " + "
$request_method | " + "The request method (GET, POST, HEAD, ...). | " + "
$request_uri | " + "The requested URI, including the query string (if any). | " + "
$uri | " + "The URI path requested, not including the query string. | " + "
$query_string | " + "Query string (if any). | " + "
$status | " + "HTTP status code. | " + "
$request_length | " + "Number of bytes received (including request line, header, and request body). | " + "
$bytes_sent | " + "The number of bytes sent to a client. | " + "
$request_time | " + "Request processing time in seconds with a milliseconds resolution: time elapsed between the first bytes were read from the client and the log write after the last bytes were sent to the client. | " + "
$http_referer | " + "Referrer hostname. | " + "
$cookie_NAME | " + "Cookie of the request having the given NAME. | " + "
$http_user_agent | " + "Web-browser or Bot identification string. | " + "
$remote_addr | " + "IP Address of the visitor (client). | " + "
$realip_remote_addr | " + "Original client IP address. | " + "
Any field than the ones above won't be considered by LogDoctor.
"
+ " When generating a log sample, these fields will appear as 'DISCARDED'.
"
+ " If you aint using logs for any other purpose, please remove unnecessary fields to make the process faster and reduce the possibility of errors.
The configuration file should be located at:
C:\\inetpub\\logs\\LogFiles\\<YourSiteName>
"
+ " Access logs can be configured from the IIS Manager.
"
+ " To open the IIS Manager, go to Control panel
→Administrative tools
→→
Internet Informations Service (IIS) Manager
.
"
+ " Once inside, click on Logging
to edit the logs settings.
Available logs formats (supported by LogDoctor) are:
" + "Comma-separated values, can't be customized further. The file name is usually something like u_in<DATE>.log
Whitespace-separated values, can't be customized further. The file name is usually something like u_nc<DATE>.log
Whitespace-separated values, can be customized by selecting which fields to log. The file name is usually something like u_ex<DATE>.log
The suggested logs module is the W3C format, which will allow using the complete set of functionalities of LogDoctor.
" + "The suggested fields to use are the following:
date
, time
, cs-method
, cs-uri-stem
, cs-uri-query
, c-ip
, cs-version
, cs(User-Agent)
, cs(Cookie)
, cs(Referer)
, sc-status
, sc-bytes
, cs-bytes
, time-taken
"
+ " Both the IIS and NCSA modules are standard, and thus LogDoctor doesn't need the format string to be specified.
"
+ " The W3C module can be customized and so a format string must be specified. It can be found insed any log file created using this format module, searching the line starting with #Fields:
.
Only the following fields will be considered, meaning that only these fields' data will be stored and used for the statistics.
" + "Code | Informations |
---|---|
date | " + "The date on which the activity occurred (UTC). | " + "
time | " + "The time at which the activity occurred (UTC). | " + "
cs-version | " + "The request protocol (HTTP/v, HTTPS/v). | " + "
cs-method | " + "The request method (GET, POST, HEAD, ...). | " + "
cs-uri-stem | " + "The URI path requested, not including any query string. | " + "
cs-uri-query | " + "Query string (if any). | " + "
sc-status | " + "HTTP status code. | " + "
cs-bytes | " + "The number of bytes received and processed by the server. | " + "
sc-bytes | " + "The number of bytes sent back by the server. | " + "
time-taken | " + "Time taken to serve the request, in milliseconds | " + "
cs(Referer) | " + "The site which provided a link to the current site. | " + "
cs(Cookie) | " + "The content of the cookie sent or received (if any). | " + "
cs(User-Agent) | " + "Web-browser or bot identification string | " + "
c-ip | " + "The IP address of the client that made the request. | " + "
Any field than the ones above won't be considered by LogDoctor.
"
+ " When generating a log sample, these fields will appear as 'DISCARDED'.
"
+ " If you aint using logs for any other purpose, please remove unnecessary fields to make the process faster and reduce the possibility of errors.