diff --git a/docs/html/annotated.html b/docs/html/annotated.html new file mode 100644 index 00000000..871c8f45 --- /dev/null +++ b/docs/html/annotated.html @@ -0,0 +1,132 @@ + + +
+ + + + ++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for BWlistException, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <exceptions.h>
Exception related to a blacklist/warnlist
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for CheckSec, including all inherited members.
+checkCollectionDatabase(const std::string &db_path) | CheckSec | static |
checkDatabaseTablesNames(QSqlDatabase &db, const QString &db_name) | CheckSec | privatestatic |
checkHashesDatabase(const std::string &db_path) | CheckSec | static |
newCollectionDatabase(QSqlDatabase &db, const QString &db_name, const std::vector< QString > &ws_names) | CheckSec | privatestatic |
newHashesDatabase(QSqlDatabase &db, const QString &db_name, const std::vector< QString > &ws_names) | CheckSec | privatestatic |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <checks.h>
+Static Public Member Functions | |
static bool | checkCollectionDatabase (const std::string &db_path) |
Checks the structure's integrity of the Collection database. More... | |
static bool | checkHashesDatabase (const std::string &db_path) |
Checks the structure's integrity of the Hashes database. More... | |
+Static Private Member Functions | |
static int | checkDatabaseTablesNames (QSqlDatabase &db, const QString &db_name) |
Checks the tables' names integrity. More... | |
static bool | newCollectionDatabase (QSqlDatabase &db, const QString &db_name, const std::vector< QString > &ws_names) |
Builds a new database for the logs Collection. More... | |
static bool | newHashesDatabase (QSqlDatabase &db, const QString &db_name, const std::vector< QString > &ws_names) |
Builds a new database for the used log files' Hashes. More... | |
Utilities used to check the databases
+
+
|
+ +static | +
Checks the structure's integrity of the Collection database.
+db_path | The path of the database, file included |
+
|
+ +staticprivate | +
Checks the tables' names integrity.
+db | Database object, already initialized |
db_name | Database's name, eventually used by the dialogs |
+
|
+ +static | +
Checks the structure's integrity of the Hashes database.
+db_path | The path of the database, file included |
+
|
+ +staticprivate | +
Builds a new database for the logs Collection.
+db | Database object, already initialized |
db_name | Database's name, eventually used by the dialogs |
+
|
+ +staticprivate | +
Builds a new database for the used log files' Hashes.
+db | Database object, already initialized |
db_name | Database's name, eventually used by the dialogs |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for ColorSec, including all inherited members.
+getColors() | ColorSec | static |
getColorSchemes() | ColorSec | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <colors.h>
+Static Public Member Functions | |
+static const std::unordered_map< std::string, QColor > | getColors () |
Provides a map with pre-made colors. | |
+static const std::unordered_map< int, std::unordered_map< std::string, QString > > | getColorSchemes () |
Provides a map with pre-made color-schemes for the TextBrowser. | |
Utilities for the colors
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <craphelp.h>
+Public Member Functions | |
void | helpLogsFormat (const std::string &path, const QFont &font, const int &color_scheme_id) |
Provides help about log formats. More... | |
Displays an help window
+void Craphelp::helpLogsFormat | +( | +const std::string & | +path, | +
+ | + | const QFont & | +font, | +
+ | + | const int & | +color_scheme_id | +
+ | ) | ++ |
Provides help about log formats.
+path | The path of the file resource to be displayed |
font | The font to be used |
color_scheme_id | The ID of the color-scheme to be used |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <crapinfo.h>
+Public Member Functions | |
Crapinfo (const int &window_theme_id, const QString &version, const QString &exec_path, const QString &conf_path, const QString &logdoc_path, QWidget *parent=nullptr) | |
Class constructor. More... | |
Displays informations
+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 |
+
+ | ) | ++ |
Class constructor.
+window_theme_id | The ID of the theme in use on the main window |
version | The version of LogDoctor actually running |
exec_path | The path of the executable |
conf_path | The path of the configuration file |
logdoc_path | The path of the additional resources folder |
parent | The parent Widget |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for Craplog, including all inherited members.
+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 | |
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 | |
warnlistRemove(const int &web_server_id, const int &log_field_id, const std::string &item) | Craplog |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <craplog.h>
+Classes | |
struct | BWlist |
Structure to hold the items of a blacklist/warnlist. More... | |
struct | LogFile |
Structure which holds informations about a log file. More... | |
struct | LogName |
Web Server specific file names criterions. More... | |
+Public Member Functions | |
void | run () |
Main work method. More... | |
+const int & | getDialogsLevel () |
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. | |
void | setStatsDatabasePath (const std::string &path) |
Sets the new path for the logs Collection database. More... | |
void | setHashesDatabasePath (const std::string &path) |
Sets the new path for the log files' Hashes database. More... | |
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... | |
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 | setLogFileSelected (const QString &file_name) |
Sets a file in the list as selected. More... | |
const bool | setApacheLogFormat (const std::string &format_string) |
Sets the Apache2 LogsFormat from the given format string. More... | |
const bool | setNginxLogFormat (const std::string &format_string) |
Sets the Nginx LogsFormat from the given format string. More... | |
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... | |
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... | |
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... | |
void | setWarnlist (const int &web_server_id, const int &log_field_id, const std::vector< std::string > &new_list) |
Sets the relative items list. More... | |
void | blacklistAdd (const int &web_server_id, const int &log_field_id, const std::string &new_item) |
Adds an item to the relative list. More... | |
void | warnlistAdd (const int &web_server_id, const int &log_field_id, const std::string &new_item) |
Adds an item to the relative list. More... | |
void | blacklistRemove (const int &web_server_id, const int &log_field_id, const std::string &item) |
Removes an item from the relative list. More... | |
void | warnlistRemove (const int &web_server_id, const int &log_field_id, const std::string &item) |
Removes an item from the relative list. More... | |
const int | blacklistMoveUp (const int &web_server_id, const int &log_field_id, const std::string &item) |
Moves an item one position up in the relative list. More... | |
const int | warnlistMoveUp (const int &web_server_id, const int &log_field_id, const std::string &item) |
Moves an item one position up in the relative list. More... | |
const int | blacklistMoveDown (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 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... | |
+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... | |
void | changeIisLogsBaseNames (const int &module_id) |
Changes the name criterions for IIS logs files names depending on the given module. More... | |
+void | scanLogsDir () |
Scans the logs directory to get a list of log files. | |
void | setCurrentLogFormat () |
Uses the current Web Server to set the relative logs format. More... | |
Performs operations related to the logs
+void Craplog::blacklistAdd | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +new_item | +
+ | ) | ++ |
Adds an item to the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
new_list | The new items list |
const int Craplog::blacklistMoveDown | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +item | +
+ | ) | ++ |
Moves an item one position down in the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
item | The item to move |
const int Craplog::blacklistMoveUp | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +item | +
+ | ) | ++ |
Moves an item one position up in the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
item | The item to move |
void Craplog::blacklistRemove | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +item | +
+ | ) | ++ |
Removes an item from the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
item | The item to remove from the list |
+
|
+ +private | +
Changes the name criterions for IIS logs files names depending on the given module.
+module_id | The ID of the module to use to set the criterions |
GenericException |
const bool Craplog::checkStuff | +( | +) | ++ |
Various checks to be made before starting a new process.
+Checks the databases, the selected files and their size
GenericException |
void Craplog::collectPerfData | +( | +) | ++ |
Collects performances data from the sub-modules.
+ + +const std::vector< std::string > & Craplog::getBlacklist | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id | +
+ | ) | ++ |
Returns the relative items list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
const FormatOps::LogsFormat & Craplog::getCurrentLogFormat | +( | +) | ++ |
const int & Craplog::getCurrentWSID | +( | +) | ++ |
Returns the currently used Web Server ID.
+const Craplog::LogFile & Craplog::getLogFileItem | +( | +const QString & | +file_name | ) | ++ |
Returns the LogFile instance of the given file.
+file_name | The name of the file |
GenericException |
const FormatOps::LogsFormat & Craplog::getLogsFormat | +( | +const int & | +web_server_id | ) | ++ |
Returns the LogsFormat currently set for the given Web Server.
+web_server_id | ID of the Web Server |
const QString Craplog::getLogsFormatSample | +( | +const int & | +web_server_id | ) | ++ |
Returns a sample log line for the given Web Server using the relative LogsFormat.
+web_server_id | ID of the Web Server |
WebServerException |
const std::string & Craplog::getLogsFormatString | +( | +const int & | +web_server_id | ) | ++ |
Returns the logs format string for the given Web Server.
+web_server_id | ID of the Web Server |
const std::vector< Craplog::LogFile > & Craplog::getLogsList | +( | +const bool & | +fresh = false | ) | ++ |
Returns the list of log files.
+fresh | Whether to refresh the list before to return it or not |
const int Craplog::getLogsListSize | +( | +) | ++ |
Returns the amount of log files in the list.
+const std::string & Craplog::getLogsPath | +( | +const int & | +web_server | ) | ++ |
Returns the logs' path for the given web Server.
+web_server | The ID of the Web Server |
const std::vector< std::string > & Craplog::getWarnlist | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id | +
+ | ) | ++ |
Returns the relative items list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
const bool & Craplog::isBlacklistUsed | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id | +
+ | ) | ++ |
Returns whether the relative blacklist is set to be used or not.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
const bool Craplog::isFileNameValid | +( | +const std::string & | +name | ) | ++ |
Checks if a file name respects the relative criterions.
+name | The name of the file |
const bool & Craplog::isWarnlistUsed | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id | +
+ | ) | ++ |
Returns whether the relative warnlist is set to be used or not.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
+
|
+ +private | +
Reads the selected files and append the resulting lines to the list.
+GenericException |
void Craplog::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.
+theme | The theme to use for the Chart |
fonts | The map holding the fonts |
size_chart | The widget which will display the chart |
+
|
+ +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 | +
Ssnitizes an item removing the unwanted elements.
+Called when adding a new item to a list
log_field_id | The ID of the log field |
new_item | The item to be sanitized |
BWlistException,GenericException |
const bool Craplog::setApacheLogFormat | +( | +const std::string & | +format_string | ) | ++ |
Sets the Apache2 LogsFormat from the given format string.
+format_string | The logs format string |
void Craplog::setBlacklist | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::vector< std::string > & | +new_list | +
+ | ) | ++ |
Sets the relative items list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
new_list | The new items list |
void Craplog::setBlacklistUsed | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const bool & | +used | +
+ | ) | ++ |
Sets the relative blacklist to be used or not.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
used | Whether the list is to be used or not |
+
|
+ +private | +
Uses the current Web Server to set the relative logs format.
+void Craplog::setCurrentWSID | +( | +const int & | +web_server_id | ) | ++ |
Sets the currently used Web Server ID.
+web_server_id | The new currently used Web Server |
void Craplog::setHashesDatabasePath | +( | +const std::string & | +path | ) | ++ |
Sets the new path for the log files' Hashes database.
+The | new path of the database file |
const bool Craplog::setIisLogFormat | +( | +const std::string & | +format_string, | +
+ | + | const int & | +log_module | +
+ | ) | ++ |
Sets the IIS LogsFormat from the given format string.
+format_string | The logs format string |
log_module | The IIS logs module to be used to parse the format string |
const bool Craplog::setLogFileSelected | +( | +const QString & | +file_name | ) | ++ |
Sets a file in the list as selected.
+file_name | The name of the file |
void Craplog::setLogsPath | +( | +const int & | +web_server, | +
+ | + | const std::string & | +new_path | +
+ | ) | ++ |
Sets a new path for the given Web Server to search the logs in.
+web_server | The ID of the Web Server |
new_path | The new path |
const bool Craplog::setNginxLogFormat | +( | +const std::string & | +format_string | ) | ++ |
Sets the Nginx LogsFormat from the given format string.
+format_string | The logs format string |
void Craplog::setStatsDatabasePath | +( | +const std::string & | +path | ) | ++ |
Sets the new path for the logs Collection database.
+The | new path of the database file |
void Craplog::setWarnlist | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::vector< std::string > & | +new_list | +
+ | ) | ++ |
Sets the relative items list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
new_list | The new items list |
void Craplog::setWarnlistUsed | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const bool & | +used | +
+ | ) | ++ |
Sets the relative warnlist to be used or not.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
used | Whether the list is to be used or not |
+
|
+ +private | +
Sets the working state.
+
+
|
+ +private | +
Un-sets the working state.
+
+
|
+ +private | +
Stores the data collection in the database.
+void Craplog::warnlistAdd | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +new_item | +
+ | ) | ++ |
Adds an item to the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
new_item | The new item to add to the list |
const int Craplog::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.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
item | The item to move |
const int Craplog::warnlistMoveUp | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +item | +
+ | ) | ++ |
Moves an item one position up in the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
item | The item to move |
void Craplog::warnlistRemove | +( | +const int & | +web_server_id, | +
+ | + | const int & | +log_field_id, | +
+ | + | const std::string & | +item | +
+ | ) | ++ |
Removes an item from the relative list.
+web_server_id | The ID of the Web Server |
log_field_id | The ID of the log field |
item | The item to remove from the list |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for Crapnote, including all inherited members.
+on_button_FontSize_Minus_clicked() | Crapnote | privateslot |
on_button_FontSize_Plus_clicked() | Crapnote | privateslot |
on_spinBox_FontSize_valueChanged(int arg1) | Crapnote | privateslot |
setColorScheme(const int &color_scheme_id) | Crapnote | |
setTextFont(const QFont &font) | Crapnote |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <crapnote.h>
+Public Member Functions | |
+void | setTextFont (const QFont &font) |
Sets the given font. | |
+void | setColorScheme (const int &color_scheme_id) |
Sets the given color-scheme. | |
A simple block-note like widget
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for Crapup, including all inherited members.
+abortRequest() | Crapup | signal |
closeEvent(QCloseEvent *event) | Crapup | privateslot |
Crapup(const int &window_theme_id, const QString &icons_theme, QWidget *parent=nullptr) | Crapup | |
deleteReply() | Crapup | private |
requestTimeout() | Crapup | privateslot |
rotateImg() | Crapup | privateslot |
versionCheck(const float ¤t_version) | Crapup |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <crapup.h>
+Signals | |
+void | abortRequest () |
Emitted to abort an on-going request. | |
+Public Member Functions | |
Crapup (const int &window_theme_id, const QString &icons_theme, QWidget *parent=nullptr) | |
Class constructor. More... | |
void | versionCheck (const float ¤t_version) |
Performs a version check. More... | |
+Private Slots | |
+void | closeEvent (QCloseEvent *event) |
Override. | |
void | requestTimeout () |
Called when a request's times out. More... | |
+void | rotateImg () |
Rotates the 'checking' image. | |
+Private Member Functions | |
+void | deleteReply () |
Deletes the reply in a safe way. | |
Crapup::Crapup | +( | +const int & | +window_theme_id, | +
+ | + | const QString & | +icons_theme, | +
+ | + | QWidget * | +parent = nullptr |
+
+ | ) | ++ |
Class constructor.
+window_theme_id | The ID of the window theme |
icons | theme The theme of the icons |
parent | The parent Widget |
+
|
+ +privateslot | +
Called when a request's times out.
+void Crapup::versionCheck | +( | +const float & | +current_version | ) | ++ |
Performs a version check.
+current_version | The running version of LogDoctor |
GenericException |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for Crapview, including all inherited members.
+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 | |
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 | |
setDbPath(const std::string &path) | Crapview | |
setDialogsLevel(const int &new_level) | Crapview | |
updateWarn(QTableWidget *table, const QString &web_server) | Crapview |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#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. | |
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... | |
+void | refreshDates () |
Refreshes the list of the dates which are available in the database. | |
+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... | |
Performs operations related to the visualization of the statistics
+const bool 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 | +
+ | ) | ++ |
Retrieves the data to fill the Globals stats.
+recur_list | The list which will hold the printable recurrencies |
traffic_list | The list which will hold the printable traffics |
perf_list | The list which will hold the printable performances |
work_list | The list which will hold the printable overall work infos |
web_server | The printable Web Server name |
void 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 | +
+ | ) | ++ |
Draws the chart and fills the table for the Counts stats.
+table | The table widget |
chart | The chart widget |
theme | The theme to use for the chart |
fonts | The map holding the fonts |
web_server | The printable Web Server name |
year | The year |
month | The printable month name |
day | The day |
field | The printable log field |
void 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 | +
+ | ) | ++ |
Draws the chart for the Daytime stats.
+chart | The chart widget |
theme | The theme to use for the chart |
fonts | The map holding the fonts |
web_server | The printable Web Server name |
year | The initial year |
month | The initial printable month name |
day | The initial day |
year | The final year |
month | The final printable month name |
day | The finl day |
field | The printable log field |
filter | The give filter string |
void 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 | +
+ | ) | ++ |
Draws the chart for the Relational stats.
+chart | The chart widget |
theme | The theme to use for the chart |
fonts | The map holding the fonts |
web_server | The printable Web Server name |
year | The initial year |
month | The initial printable month name |
day | The initial day |
year | The final year |
month | The final printable month name |
day | The finl day |
field_1 | The first printable log field |
filter_1 | The give filter string for the first field |
field_2 | The second printable log field |
filter_2 | The give filter string for the second field |
void 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 | +
+ | ) | ++ |
Draws the chart and fills the table for the Speed stats.
+table | The table widget |
chart | The chart widget |
theme | The theme to use for the chart |
fonts | The map holding the fonts |
web_server | The printable Web Server name |
year | The year |
month | The printable month name |
day | The day |
protocol | The given filter for the Protocol |
method | The given filter for the Method |
uri | The given filter for the URI |
query | The given filter for the Query |
response | The given filter for the Response |
void 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 | +
+ | ) | ++ |
Draws the chart and fills the table for the Warnings stats.
+table | The table widget |
chart | The chart widget |
theme | The theme to use for the chart |
fonts | The map holding the fonts |
web_server | The printable Web Server name |
year | The year |
month | The printable month name |
day | The day |
hout | The hour |
const QStringList Crapview::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.
+web_server | The printable Web Server name |
year | The year |
month | The printable month name |
const QStringList Crapview::getFields | +( | +const std::string & | +tab | ) | ++ |
Returns a list of the fields for the given tab.
+tab | The stats tab |
const QStringList Crapview::getHours | +( | +) | ++ |
Returns all the hours of the day.
+const int Crapview::getLogFieldID | +( | +const QString & | +field_str | ) | ++ |
Returns the log field ID corresponding to the given printable field.
+field_str | The log field |
const QString Crapview::getLogFieldString | +( | +const int & | +field_id | ) | ++ |
Returns the printable log field corresponding to the given ID.
+The field gets translated to be printable before being returned
field_id | The ID of the log fiels |
const int Crapview::getMonthNumber | +( | +const QString & | +month_str | ) | ++ |
Returns the month number corresponding to the given printable month.
+month_Str | The printable month name |
const QStringList Crapview::getMonths | +( | +const QString & | +web_server, | +
+ | + | const QString & | +year | +
+ | ) | ++ |
Returns le list of available months in the given year, for the given web server.
+web_server | The printable Web Server name |
year | The year |
const QStringList Crapview::getYears | +( | +const QString & | +web_server | ) | ++ |
Returns le list of available years, for the given web server.
+web_server | The printable Web Server name |
const QString Crapview::parseBooleanFilter | +( | +const QString & | +filter_str | ) | ++ |
Parses a filter for a database field with boolean type.
+field_str | The given filter |
const QString Crapview::parseNumericFilter | +( | +const QString & | +filter_str | ) | ++ |
Parses a filter for a log field with integer type.
+field_str | The given filter |
const QString Crapview::parseTextualFilter | +( | +const QString & | +filter_str | ) | ++ |
Parses a filter for a log field with text type.
+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 |
void Crapview::setDbPath | +( | +const std::string & | +path | ) | ++ |
Sets the new path for the logs Collection database.
+void Crapview::updateWarn | +( | +QTableWidget * | +table, | +
+ | + | const QString & | +web_server | +
+ | ) | ++ |
Updates the database applying the changes which have been made to the table.
+table | The Warnings stats table |
web_server | The printable Web Server name |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for CrissCross, including all inherited members.
+AI_makeChoice() | CrissCross | private |
AI_playTurn() | CrissCross | private |
AI_updateWeights() | CrissCross | private |
checkVictory() | CrissCross | private |
draw() | CrissCross | private |
endTurn() | CrissCross | private |
gameDraw() | CrissCross | private |
isPlayerTurn() | CrissCross | private |
nextTurn() | CrissCross | private |
victory() | CrissCross | private |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <crisscross.h>
+Private Member Functions | |
+void | endTurn () |
Ends the current turn. | |
+void | nextTurn () |
Switches to the next turn. | |
+const bool | isPlayerTurn () |
Checks whether it's the human player turn or not. | |
+const bool | checkVictory () |
Checks whether somebody won or not. | |
+const bool | gameDraw () |
Checks whether the game is draw or not. | |
+void | victory () |
Someone won, process the victory. | |
+void | draw () |
The match is over but nobody won, the game is draw. | |
+void | AI_playTurn () |
Main function for the AI to play its turn. | |
void | AI_updateWeights () |
Updates the weights of the tiles. More... | |
const unsigned int | AI_makeChoice () |
Makes the choice depending on the weights. More... | |
Player vs AI criss-cross game
+
+
|
+ +private | +
Makes the choice depending on the weights.
+
+
|
+ +private | +
Updates the weights of the tiles.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for DateTimeException, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <exceptions.h>
Exception related to a date/time
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for DateTimeOps, including all inherited members.
+convertMonth(const std::string &month) | DateTimeOps | privatestatic |
processDateTime(const std::string &datetime, const std::string &format) | DateTimeOps | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <datetime.h>
+Static Public Member Functions | |
static const std::vector< std::string > | processDateTime (const std::string &datetime, const std::string &format) |
Returns a standardized list of items representing the given date and time. More... | |
+Static Private Member Functions | |
static const std::string | convertMonth (const std::string &month) |
Converts a month from the short-name to the number. More... | |
Operations for the dates
+
+
|
+ +staticprivate | +
Converts a month from the short-name to the number.
+month | The short-name of the month |
DateTimeException |
+
|
+ +static | +
Returns a standardized list of items representing the given date and time.
+datetime | The given date and time string |
format | The format of the given string |
DateTimeException |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Public Member Functions | |
+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... | |
+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... | |
void DbQuery::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.
+result | Tuple which will hold the result of the operation and the data |
web_server | The ID of the Web Server to use |
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 |
log_field_ | The log field to filter |
field_filter | The filter to apply |
+
|
+ +private | +
Returns the database field corresponding to the relative log field.
+tr_fld | The log field, hendles translated text |
const bool DbQuery::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.
+web_server | The ID of the Web Server to use |
dates | The dates to query |
recurs | Will hold the recurrencies of the items |
traf_date | Will hold the most trafficked date and the count |
traf_day | Will hold the most trafficked day of the week and the count |
traf_hour | Will hold the most trafficked hour of the day and the count |
perf_time | Will hold the overallo time taken |
perf_sent | Will hold the overall Bytes sent |
perf_receiv | Will hold the overall Bytes received |
req_count | Will hold the number of requests examined by the query |
void 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 | +
+ | ) | ++ |
Retrieves the data needed for the Counts statistics.
+result | Tuple which will hold the result of the operation and the data |
web_server | The ID of the Web Server to use |
year | The year |
month | The month |
day | The day |
log_field | The log field |
+
|
+ +private | +
Returns the minute gap for the given minute with the given gap.
+minute | The minute of the hour |
gap | The gap used to split the hour |
DateTimeException |
+
|
+ +private | +
Returns the number of days for a given month.
+year | The year, used to handle leap years |
month | The month |
DateTimeException |
+
|
+ +private | +
Returns the month number in the year.
+month_str | The month |
+
|
+ +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 |
void DbQuery::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.
+Used when querying a single day
result | Tuple which will hold the result of the operation and the data |
web_server | The ID of the Web Server to use |
year_ | The year |
month_ | The month |
day_ | The day |
log_field_1_ | The first log field to filter |
field_filter_1 | The filter to apply to the first field |
log_field_2_ | The second log field to filter |
field_filter_2 | The filter to apply to the second fiend |
void 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 | +
+ | ) | ++ |
Retrieves the data needed for the Relational statistics.
+Used when querying a period of time
result | Tuple which will hold the result of the operation and the data |
web_server | The ID of the Web Server to use |
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 |
log_field_1_ | The first log field to filter |
field_filter_1 | The filter to apply to the first field |
log_field_2_ | The second log field to filter |
field_filter_2 | The filter to apply to the second fiend |
void 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 | +
+ | ) | ++ |
Retrieves the data needed for the Speed statistics.
+result | Tuple which will hold the result of the operation and the data |
web_server | The ID of the Web Server to use |
year_ | The year |
month_ | The month |
day_ | The day |
protocol_f | The filter for the Protocol field |
method_f | The filter for the Method field |
uri_f | The filter for the URI field |
query_f | The filter for the Query field |
response_f | The filter for the Response field |
void 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_ | +
+ | ) | ++ |
Retrieves the data needed for the Warnings statistics.
+result | Tuple which will hold the result of the operation and the data |
web_server | The ID of the Web Server to use |
year_ | The year |
month_ | The month |
day_ | The day |
hour_ | The hour |
void DbQuery::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.
+result | Tuple which will hold the result of the operation and the data |
void DbQuery::setDbPath | +( | +const std::string & | +path | ) | ++ |
Sets the path for the logs Collection database.
+void DbQuery::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.
+web_server | The ID of the Web Server to use |
updates | The list of rowids to update and the corresponding warning values |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for DialogBool, including all inherited members.
+DialogBool(const QString &title, const QString &text, QWidget *parent=nullptr) | DialogBool | |
on_button_NO_clicked() | DialogBool | privateslot |
on_button_YES_clicked() | DialogBool | privateslot |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <dialogbool.h>
+Public Member Functions | |
DialogBool (const QString &title, const QString &text, QWidget *parent=nullptr) | |
Dialog constructor. More... | |
+Private Slots | |
+void | on_button_NO_clicked () |
Called when the NO button gets clicked. | |
+void | on_button_YES_clicked () |
Called when the YES button gets clicked. | |
YES/NO choice dialog
+DialogBool::DialogBool | +( | +const QString & | +title, | +
+ | + | const QString & | +text, | +
+ | + | QWidget * | +parent = nullptr |
+
+ | ) | ++ |
Dialog constructor.
+title | The title |
text | The message |
parent | The parent Widget |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 | |
on_button_ABORT_clicked() | DialogDia | privateslot |
on_button_DISCARD_clicked() | DialogDia | privateslot |
on_button_IGNORE_clicked() | DialogDia | privateslot |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <dialogdia.h>
+Public Member Functions | |
DialogDia (const QString &title, const QString &text, const bool &ignore=true, const bool &discard=true, const bool &abort=true, QWidget *parent=nullptr) | |
Dialog constructor. More... | |
DISCARD/IGNORE/ABORT choice dialog
+DialogDia::DialogDia | +( | +const QString & | +title, | +
+ | + | const QString & | +text, | +
+ | + | const bool & | +ignore = true , |
+
+ | + | const bool & | +discard = true , |
+
+ | + | const bool & | +abort = true , |
+
+ | + | QWidget * | +parent = nullptr |
+
+ | ) | ++ |
Dialog constructor.
+title | The title |
text | The message |
ignore | Whether to show the IGNORE button or not |
discard | Whether to show the DISCARD button or not |
abort | Whether to show the ABORT button or not |
parent | The parent Widget |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for DialogMsg, including all inherited members.
+DialogMsg(const QString &title, const QString &text, const QString &additional, const int &type, QWidget *parent=nullptr) | DialogMsg | |
on_button_Ok_clicked() | DialogMsg | privateslot |
on_button_ShowAdditional_clicked() | DialogMsg | privateslot |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <dialogmsg.h>
+Public Member Functions | |
DialogMsg (const QString &title, const QString &text, const QString &additional, const int &type, QWidget *parent=nullptr) | |
Dialog constructor. More... | |
+Private Slots | |
+void | on_button_ShowAdditional_clicked () |
Shows the additional informations. | |
+void | on_button_Ok_clicked () |
Called when the OK button gets clicked. | |
A dialog message to provide informations to the user
+DialogMsg::DialogMsg | +( | +const QString & | +title, | +
+ | + | const QString & | +text, | +
+ | + | const QString & | +additional, | +
+ | + | const int & | +type, | +
+ | + | QWidget * | +parent = nullptr |
+
+ | ) | ++ |
Dialog constructor.
+title | The title |
text | The message |
additional | Additional informations, usually an error message |
parent | The parent Widget |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for DialogSec, including all inherited members.
+choiceDatabaseMissingColumn(const QString &db_name, const QString &table_name, const QString &column_name, QWidget *parent=nullptr) | DialogSec | static |
choiceDatabaseMissingTable(const QString &db_name, const QString &table_name, QWidget *parent=nullptr) | DialogSec | static |
choiceDatabaseNotFound(const QString &db_name, QWidget *parent=nullptr) | DialogSec | static |
choiceDatabaseRenew(const QString &title, const QString &msg, QWidget *parent=nullptr) | DialogSec | privatestatic |
choiceDatabaseWrongColumn(const QString &db_name, const QString &table_name, const QString &column_name, QWidget *parent=nullptr) | DialogSec | static |
choiceDatabaseWrongDataType(const QString &db_name, const QString &table_name, const QString &column_name, const QString &data_type, QWidget *parent=nullptr) | DialogSec | static |
choiceDatabaseWrongTable(const QString &db_name, const QString &table_name, QWidget *parent=nullptr) | DialogSec | static |
choiceDirNotDir(const QString &path, QWidget *parent=nullptr) | DialogSec | static |
choiceFileAlreadyUsed(const QString &msg, QWidget *parent=nullptr) | DialogSec | static |
choiceFileNotFile(const QString &path, QWidget *parent=nullptr) | DialogSec | static |
choiceFileSizeWarning(const QString &msg, QWidget *parent=nullptr) | DialogSec | static |
choiceFileSizeWarning2(const QString &msg, QWidget *parent=nullptr) | DialogSec | static |
choiceSelectedFileNotFound(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
errConfDirNotWritable(const QString &dir, QWidget *parent=nullptr) | DialogSec | static |
errConfFailedWriting(const QString &msg="", QWidget *parent=nullptr) | DialogSec | static |
errConfFileNotReadable(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
errConfFileNotWritable(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
errDatabaseFailedBackup(const QString &msg, QWidget *parent=nullptr) | DialogSec | static |
errDatabaseFailedCreating(const QString &db_name, QWidget *parent=nullptr) | DialogSec | static |
errDatabaseFailedExecuting(const QString &db_name, const QString &statement="", const QString &err_msg="", QWidget *parent=nullptr) | DialogSec | static |
errDatabaseFailedOpening(const QString &db_name, const QString &err_msg, QWidget *parent=nullptr) | DialogSec | static |
errDatabaseNotFile(const QString &db_name, QWidget *parent=nullptr) | DialogSec | static |
errDatabaseNotReadable(const QString &db_name, QWidget *parent=nullptr) | DialogSec | static |
errDatabaseNotWritable(const QString &db_name, QWidget *parent=nullptr) | DialogSec | static |
errDirNotExists(const QString &dir, QWidget *parent=nullptr) | DialogSec | static |
errDirNotReadable(const QString &dir, QWidget *parent=nullptr) | DialogSec | static |
errDirNotWritable(const QString &dir, QWidget *parent=nullptr) | DialogSec | static |
errFailedApplyingConfigs(const QString &msg="", QWidget *parent=nullptr) | DialogSec | static |
errFailedDefiningLogType(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
errFailedMakeDir(const QString &msg, QWidget *parent=nullptr) | DialogSec | static |
errFailedParsingLogs(const QString &message, QWidget *parent=nullptr) | DialogSec | static |
errFailedReadFile(const QString &file, const bool &skipping=false, QWidget *parent=nullptr) | DialogSec | static |
errFileNotFound(const QString &file, const bool &report=false, QWidget *parent=nullptr) | DialogSec | static |
errGeneric(const QString &message, const bool &report_msg=false, QWidget *parent=nullptr) | DialogSec | static |
errHelpFailed(const QString &link, const QString &msg="", QWidget *parent=nullptr) | DialogSec | static |
errHelpNotFound(const QString &link, QWidget *parent=nullptr) | DialogSec | static |
errHelpNotReadable(const QString &link, QWidget *parent=nullptr) | DialogSec | static |
errInvalidLogFormatString(const QString &msg, QWidget *parent=nullptr) | DialogSec | static |
errLangLocaleInvalid(const QString &locale, QWidget *parent=nullptr) | DialogSec | static |
errLangNotAccepted(const QString &locale, QWidget *parent=nullptr) | DialogSec | static |
errLogFormatNoFields(QWidget *parent=nullptr) | DialogSec | static |
errLogFormatNoSeparators(QWidget *parent=nullptr) | DialogSec | static |
errLogFormatNotSet(QWidget *parent=nullptr) | DialogSec | static |
errRenaming(const QString &path, QWidget *parent=nullptr) | DialogSec | static |
errSqlDriverNotFound(const QString &driver, QWidget *parent=nullptr) | DialogSec | static |
msgDatabaseCreated(const QString &db_name, QWidget *parent=nullptr) | DialogSec | static |
warnConfFileNotFound(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
warnDirNotReadable(QWidget *parent=nullptr) | DialogSec | static |
warnDirNotWritable(QWidget *parent=nullptr) | DialogSec | static |
warnEmptyFile(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
warnFileNotReadable(const QString &file, QWidget *parent=nullptr) | DialogSec | static |
warnInvalidItemBW(QWidget *parent=nullptr) | DialogSec | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <dialogs.h>
+Static Private Member Functions | |
+static const bool | choiceDatabaseRenew (const QString &title, const QString &msg, QWidget *parent=nullptr) |
Asks to renew a database. | |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for DonutBreakdown, including all inherited members.
+addBreakdownSeries(QPieSeries *series, const QColor &color, const QFont &font) | DonutBreakdown | |
recalculateAngles() | DonutBreakdown | private |
updateLegendMarkers() | DonutBreakdown | private |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
DonutBreakdon. + More...
+ +#include <donuts.h>
+Public Member Functions | |
void | addBreakdownSeries (QPieSeries *series, const QColor &color, const QFont &font) |
Adds a slice to the donut. More... | |
DonutBreakdon.
+Builds the donut chart to be displayed
+void DonutBreakdown::addBreakdownSeries | +( | +QPieSeries * | +series, | +
+ | + | const QColor & | +color, | +
+ | + | const QFont & | +font | +
+ | ) | ++ |
Adds a slice to the donut.
+series | The series to add |
color | The color of the slice |
font | The font to be used |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 | |
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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <formats.h>
+Classes | |
struct | LogsFormat |
Structure which holds informations about a log format. More... | |
+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... | |
+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... | |
+Private Attributes | |
const std::unordered_map< std::string, std::string > | APACHE_ALF |
< Access logs fields formats More... | |
+const std::unordered_map< std::string, std::string > | NGINX_ALF |
< Access logs fields formats | |
+const std::unordered_map< std::string, std::string > | IIS_ALF |
< Access logs fields formats | |
Operations for the logs formats
+
+
|
+ +private | +
Checks whether the format string contains invalid characters or not.
+string | The format string |
LogFormatException |
+
|
+ +private | +
Conuts how many new lines are there in the format.
+Used to join log lines which refer to the same log line
initial | The initial separator |
final | The final separator |
separators | The separators in the middle |
+
|
+ +private | +
Finds the end of a Nginx log field.
+string | The format string |
start | The starting point of the field in the string |
const QString FormatOps::getApacheLogSample | +( | +const LogsFormat & | +log_format | ) | ++ |
Returns a log line sample based on the given format.
+log_format | The logs format to use to build the sample |
const QString FormatOps::getIisLogSample | +( | +const LogsFormat & | +log_format | ) | ++ |
Returns a log line sample based on the given format.
+log_format | The logs format to use to build the sample |
const QString FormatOps::getNginxLogSample | +( | +const LogsFormat & | +log_format | ) | ++ |
Returns a log line sample based on the given format.
+log_format | The logs format to use to build the sample |
+
|
+ +private | +
Parses the escapes (backslashes) and returns the resulting string.
+Used to obtain the same result as on Apache2
string | The string to parse |
strftime | Whether to apply the strftime special rule when parsing or not |
LogFormatException |
+
|
+ +private | +
Parses the escapes (backslashes) and returns the resulting string.
+Used to obtain the same result as on Nginx
string | The string to parse |
LogFormatException |
const FormatOps::LogsFormat FormatOps::processApacheFormatString | +( | +const std::string & | +format_string | ) | ++ |
Processes the given string to extrapolate the format for Apache2.
+format_string | The format string to process |
LogFormatException |
const FormatOps::LogsFormat FormatOps::processIisFormatString | +( | +const std::string & | +format_string, | +
+ | + | const int & | +log_module | +
+ | ) | ++ |
Processes the given string to extrapolate the format for the IIS.
+format_string | The format string to process |
log_module | The ID of the log module to use |
LogFormatException |
const FormatOps::LogsFormat FormatOps::processNginxFormatString | +( | +const std::string & | +format_string | ) | ++ |
Processes the given string to extrapolate the format for Nginx.
+format_string | The format string to process |
LogFormatException |
+
|
+ +private | +
< Access logs fields formats
+Composed access logs fields formats
+ ++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for GZutils, including all inherited members.
+readFile(const std::string &path, std::string &content) | GZutils | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
GZUtils. + More...
+ +#include <gzip.h>
+Static Public Member Functions | |
static void | readFile (const std::string &path, std::string &content) |
Reads a GZipped file. More... | |
GZUtils.
+Utilities to work on GZipped files
+
+
|
+ +static | +
Reads a GZipped file.
+path | The path of the file |
content | Will hold the content of the file |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for GameSec, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <games.h>
Utilities for the games
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for GenericException, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <exceptions.h>
Generic exception for general purposes
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <hash.h>
+Public Member Functions | |
+void | setDialogLevel (const int &new_level) |
Sets the new Dialogs level. | |
bool | loadUsedHashesLists (const std::string &db_path) |
Retrieves the lists of hashes from the database file. More... | |
std::string | digestFile (const std::string &file_path) |
Returns the hash resulting from the content of the given file. More... | |
bool | hasBeenUsed (const std::string &file_hash, const int &web_server_id) |
Checks if the given hash equals one which is already in the list. More... | |
bool | insertUsedHash (QSqlQuery &query, const QString &db_name, const std::string &hash, const int &web_server_id) |
Inserts a hashe in the corresponding database table. More... | |
bool | insertUsedHashes (const std::string &db_path, const std::vector< std::string > &hashes, const int &web_server_id) |
Inserts multiple hashes in the corresponding database table. More... | |
Operations for the hashes
+std::string HashOps::digestFile | +( | +const std::string & | +file_path | ) | ++ |
Returns the hash resulting from the content of the given file.
+file_path | The path of the file to process |
GenericException |
bool HashOps::hasBeenUsed | +( | +const std::string & | +file_hash, | +
+ | + | const int & | +web_server_id | +
+ | ) | ++ |
Checks if the given hash equals one which is already in the list.
+file_hash | The sha256 hash to compare |
web_server_id | The ID of the Web Server which generated the file |
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 std::string & | +db_path, | +
+ | + | const std::vector< std::string > & | +hashes, | +
+ | + | const int & | +web_server_id | +
+ | ) | ++ |
Inserts multiple hashes in the corresponding database table.
+db_path | The path of the Hashes database |
hashes | The list of hashes to insert |
web_server_id | The ID of the Web Server which generated the file |
bool HashOps::loadUsedHashesLists | +( | +const std::string & | +db_path | ) | ++ |
Retrieves the lists of hashes from the database file.
+db_path | The path of the log files' Hashes database |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for IOutils, including all inherited members.
+checkDir(const std::string &path, const bool &readable=false, const bool &writable=false) | IOutils | static |
checkFile(const std::string &path, const bool &readable=false, const bool &writable=false) | IOutils | static |
exists(const std::string &path) | IOutils | static |
isDir(const std::string &path) | IOutils | static |
isFile(const std::string &path) | IOutils | static |
makeDir(const std::string &path) noexcept(true) | IOutils | static |
randomLines(const std::string &path, std::vector< std::string > &lines, const int &n_lines=16, const bool &strip_lines=true) | IOutils | static |
readFile(const std::string &path, std::string &content) | IOutils | static |
renameAsCopy(const std::string &path) noexcept(true) | IOutils | static |
writeOnFile(const std::string &path, const std::string &content) | IOutils | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
IOUtils. + More...
+ +#include <io.h>
+Static Public Member Functions | |
static const bool | exists (const std::string &path) |
Checks the existence of a file/folder. More... | |
static const bool | isFile (const std::string &path) |
Checks if a path exists and points to a file. More... | |
static const bool | isDir (const std::string &path) |
Checks if a path exists and points to a directory. More... | |
static const bool | checkFile (const std::string &path, const bool &readable=false, const bool &writable=false) |
Checks if a path exists, if it points to a file and if the user has read and/or write permissions on it. More... | |
static const bool | checkDir (const std::string &path, const bool &readable=false, const bool &writable=false) |
Checks if a path exists, if it points to a folder and if the user has read and/or write permissions on it. More... | |
static const bool | makeDir (const std::string &path) noexcept(true) |
Creates a directory. More... | |
static const bool | renameAsCopy (const std::string &path) noexcept(true) |
Renames an entry with a trailing '.copy'. More... | |
static void | randomLines (const std::string &path, std::vector< std::string > &lines, const int &n_lines=16, const bool &strip_lines=true) |
Randomly pick lines from a file. More... | |
static void | readFile (const std::string &path, std::string &content) |
Reads the content of a file. More... | |
static void | writeOnFile (const std::string &path, const std::string &content) |
Writes a string on file. More... | |
IOUtils.
+Utilities to work on files
+
+
|
+ +static | +
Checks if a path exists, if it points to a folder and if the user has read and/or write permissions on it.
+path | The path of the entry |
readable | Set to true to check for readability |
writable | Set to true to check for writability |
+
|
+ +static | +
Checks if a path exists, if it points to a file and if the user has read and/or write permissions on it.
+path | The path of the entry |
readable | Set to true to check for readability |
writable | Set to true to check for writability |
+
|
+ +static | +
Checks the existence of a file/folder.
+path | The path of the entry |
+
|
+ +static | +
Checks if a path exists and points to a directory.
+path | The path of the entry |
+
|
+ +static | +
Checks if a path exists and points to a file.
+path | The path of the entry |
+
|
+ +staticnoexcept | +
Creates a directory.
+path | The path of the new entry |
+
|
+ +static | +
Randomly pick lines from a file.
+path | The path of the entry |
lines | Will hold the picked lines |
n_lines | The number of lines to pick |
strip_lines | Whether to strip control-characters away from the lines |
+
|
+ +static | +
Reads the content of a file.
+path | The path of the file to read from |
content | Will hold the content of the file |
+
|
+ +staticnoexcept | +
Renames an entry with a trailing '.copy'.
+path | The path of the entry to rename |
+
|
+ +static | +
Writes a string on file.
+path | The path of the file to write on |
content | The string to write |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for LogFormatException, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <exceptions.h>
Exception related to a Logs Format
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for LogOps, including all inherited members.
+Access enum value | LogOps | |
cleanLines(std::vector< std::string > &lines) | LogOps | |
deepTypeCheck(const std::string &line, const FormatOps::LogsFormat &format) | LogOps | private |
defineFileType(const std::vector< std::string > &lines, const FormatOps::LogsFormat &format) | LogOps | |
Discarded enum value | LogOps | |
Failed enum value | LogOps | |
getParsedLines() | LogOps | |
getParsedSize() | LogOps | |
getTotalSize() | LogOps | |
LogType enum name | LogOps | |
parsed_lines | LogOps | private |
parsed_size | LogOps | private |
parseLine(const std::string &line, const FormatOps::LogsFormat &format) | LogOps | private |
parseLines(std::vector< std::unordered_map< int, std::string > > &data, const std::vector< std::string > &lines, const FormatOps::LogsFormat &format) | LogOps | |
resetPerfData() | LogOps | |
total_size | LogOps | private |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <logs.h>
+Public Types | |
enum | LogType { Failed = -1 +, Discarded = 0 +, Access = 1 + } |
Enumerates log file types. More... | |
+Public Member Functions | |
LogType | defineFileType (const std::vector< std::string > &lines, const FormatOps::LogsFormat &format) |
Defines the type of a file. More... | |
void | cleanLines (std::vector< std::string > &lines) |
Removes commented lines from the given list. More... | |
void | 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. More... | |
+void | resetPerfData () |
Resets the performances data. | |
const unsigned | getTotalSize () |
Returns the total size of the logs lines. More... | |
const unsigned | getParsedSize () |
Returns the parsed logs size. More... | |
const unsigned | getParsedLines () |
Returns the number of parsed log lines. More... | |
+Private Member Functions | |
bool | deepTypeCheck (const std::string &line, const FormatOps::LogsFormat &format) |
Parse the given line using the given format. More... | |
const std::unordered_map< int, std::string > | parseLine (const std::string &line, const FormatOps::LogsFormat &format) |
Parses a line to extract data. More... | |
+Private Attributes | |
unsigned | total_size =0 |
Total size of the parsed logs. More... | |
unsigned | parsed_size =0 |
Size of the parsed logs. More... | |
unsigned | parsed_lines =0 |
Number of parsed logs lines. More... | |
Operations for the logs
+enum LogOps::LogType | +
Enumerates log file types.
+File types used to decide whether a file should be considered valid or not
Enumerator | |
---|---|
Failed | Failed to determine the type. + |
Discarded | Not a valid file, will be discarded. + |
Access | Valid access logs file type. + |
void LogOps::cleanLines | +( | +std::vector< std::string > & | +lines | ) | ++ |
Removes commented lines from the given list.
+lines | The lines to clean |
+
|
+ +private | +
Parse the given line using the given format.
+line | The log line to check |
format | The logs format to use |
LogOps::LogType LogOps::defineFileType | +( | +const std::vector< std::string > & | +lines, | +
+ | + | const FormatOps::LogsFormat & | +format | +
+ | ) | ++ |
Defines the type of a file.
+lines | A list of (randomly picked) lines from the file to examine |
format | The logs format to use to determine if the file is valid or not |
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.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for LogParserException, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <exceptions.h>
Exception related to the logs parser
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for MainSlice, including all inherited members.
+breakdownSeries() const | MainSlice | |
name() const | MainSlice | |
setName(QString name) | MainSlice | |
updateLabel() | MainSlice | slot |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
Represents a slice. + More...
+ +#include <donuts.h>
+Public Slots | |
+void | updateLabel () |
Updates the label using the name. | |
+Public Member Functions | |
+QPieSeries * | breakdownSeries () const |
Returns the series. | |
void | setName (QString name) |
Sets the name. More... | |
+QString | name () const |
Returns the name. | |
Represents a slice.
+A slice to be added at the donut
+void MainSlice::setName | +( | +QString | +name | ) | ++ |
Sets the name.
+name | The name to be used |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for MainWindow, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <mainwindow.h>
+Private Slots | |
void | menu_actionEnglish_triggered () |
+Private Member Functions | |
+void | defineOSspec () |
Defines OS specific stuff. | |
+void | readConfigs () |
Reads the configurations file and apply the resulting configuration. | |
+void | 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... | |
+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... | |
+void | detectIconsTheme () |
Auto-detects the icon-set to use depending on the current window theme. | |
+void | updateUiIcons () |
Updates the icons on the window. | |
+void | updateUiTheme () |
Updates the window theme. | |
+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. | |
+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. | |
void | refreshStatsDates () |
Queries the available dates from the db and apply to the tabs. More... | |
The parent window
+
+
|
+ +private | +
Retrieves the window geometry from the given string.
+
+
|
+ +private | +
Converts the window's geometry to string.
+
+
|
+ +private | +
Converts a list of items to a string.
+list | The list to stringify |
user_agents | Whether to apply the special rule to parse user-agents lists or not |
+
|
+ +privateslot | +
MENU //// //////////
+ +
+
|
+ +private | +
Queries the available dates from the db and apply to the tabs.
+
+
|
+ +private | +
Retrieves a list of items from the given string.
+list | The list to stringify |
user_agents | Whether to apply the special rule to parse user-agents lists or not |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for RichText, including all inherited members.
+enrichLogs(QString &rich_content, const std::string &content, const FormatOps::LogsFormat &logs_format, TextBrowser &TB) | RichText | static |
richLogsDefault(QString &rich_str) | RichText | static |
richLogsFailure(QString &rich_str) | RichText | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <rtf.h>
+Static Public Member Functions | |
static void | enrichLogs (QString &rich_content, const std::string &content, const FormatOps::LogsFormat &logs_format, TextBrowser &TB) |
Enriches the content of a log file with HTML/CSS code. More... | |
static void | richLogsDefault (QString &rich_str) |
Provides the default string. More... | |
static void | richLogsFailure (QString &rich_str) |
Provides the failure string. More... | |
Utilities for the TextBrowser
+
+
|
+ +static | +
Enriches the content of a log file with HTML/CSS code.
+rich_content | Will hold the final enriched content |
content | The plain text content from a log file |
logs_format | The logs format to use |
TB | The TextBrowser instance |
+
|
+ +static | +
Provides the default string.
+rich_str | Will hold the string |
+
|
+ +static | +
Provides the failure string.
+rich_str | Will hold the string |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for SHA256, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for Snake, including all inherited members.
+checkCollision() | Snake | private |
Direction enum name | Snake | private |
DOWN enum value | Snake | private |
increaseGameScore() | Snake | private |
increaseSnakeBody(const bool &initial=false) | Snake | private |
key_events | Snake | private |
keyPressEvent(QKeyEvent *event) override | Snake | private |
LEFT enum value | Snake | private |
MAX_SNAKE_LENGTH | Snake | private |
on_button_Play_clicked() | Snake | privateslot |
processGameLogic() | Snake | privateslot |
processNextKeyEvent() | Snake | private |
RIGHT enum value | Snake | private |
snake | Snake | private |
snakeInTile(const unsigned int &x, const unsigned int &y) | Snake | private |
spawnFood() | Snake | private |
UP enum value | Snake | private |
updateSnakePosition(const bool &dry=false) | Snake | private |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <snake.h>
+Classes | |
struct | BodyPart |
Instance of a part of the body of the snake. More... | |
struct | Food |
Instance of the egg which will be eat by the snake. More... | |
+Private Types | |
enum | Direction { UP +, DOWN +, LEFT +, RIGHT + } |
Enumerates the possible directions. More... | |
+Private Slots | |
+void | on_button_Play_clicked () |
Starts the game. | |
+void | processGameLogic () |
Processes the logic of the game. | |
+Private Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
Stores the valid key events in a queue. More... | |
void | processNextKeyEvent () |
Processes the key events in the queue. More... | |
+const bool | snakeInTile (const unsigned int &x, const unsigned int &y) |
Checks whether is there a part of the snake in the given position. | |
+void | increaseSnakeBody (const bool &initial=false) |
Increases the length of the body of the snake of 1 part. | |
+void | updateSnakePosition (const bool &dry=false) |
Update the position and direction of the entire snake. | |
+void | checkCollision () |
Checks if the head will collide with another entity. | |
+void | spawnFood () |
Spawns the egg in a new position. | |
+void | increaseGameScore () |
Increases the player's score by one. | |
+Private Attributes | |
+std::queue< unsigned short > | key_events |
Stores the key events. | |
+const unsigned int | MAX_SNAKE_LENGTH = 64 |
The maximum length of the snake. | |
+std::vector< BodyPart > | snake |
The snake. | |
A reproduction of the timeless classic game
+
+
|
+ +private | +
+
|
+ +overrideprivate | +
Stores the valid key events in a queue.
+Valid keys are UP/DOWN/LEFT/RIGHT arrows and W/S/A/D letters
+
|
+ +private | +
Processes the key events in the queue.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for StoreOps, including all inherited members.
+storeData(QSqlDatabase &db, Craplog &craplog, const std::vector< std::unordered_map< int, std::string > > &data) | StoreOps | static |
+ |
+ 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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
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 |
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 |
isAlnum(const unsigned char &chr) | StringOps | static |
isAlphabetic(const std::string &str) | StringOps | static |
isAlphabetic(const unsigned char &chr) | StringOps | static |
isHex(const unsigned char &chr) | StringOps | static |
isIP(const std::string &str) | StringOps | static |
isNumeric(const std::string &str) | StringOps | static |
isNumeric(const unsigned char &chr) | StringOps | static |
lstrip(const std::string &str, const std::string &chars=" \n\t\b\r\v") | StringOps | static |
lstripUntil(const std::string &str, const std::string &chr, const bool &inclusive=true, const bool &consecutives=true) | StringOps | static |
replace(const std::string &str, const std::string &target, const std::string &replace) | StringOps | static |
rstrip(const std::string &str, const std::string &chars=" \n\t\b\r\v") | StringOps | static |
split(std::vector< std::string > &list, const std::string &target_str, const std::string &separator="\n") | StringOps | static |
splitrip(std::vector< std::string > &list, const std::string &target_str, const std::string &separator="\n", const std::string &strip=" \n\t\b\r\v") | StringOps | static |
startsWith(const std::string &str, const std::string &flag) | StringOps | static |
strip(const std::string &str, const std::string &chars=" \n\t\b\r\v") | StringOps | static |
toLower(const std::string &str) | StringOps | static |
toUpper(const std::string &str) | StringOps | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <strings.h>
+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 bool | isNumeric (const std::string &str) |
Checks whether a string only contains numeric characters. More... | |
static const bool | isNumeric (const unsigned char &chr) |
Checks whether character is numeric. More... | |
static const bool | isAlphabetic (const std::string &str) |
Checks whether a string only contains alphabetic characters. More... | |
static const bool | isAlphabetic (const unsigned char &chr) |
Checks whether a character is alphabetic. More... | |
static const bool | isAlnum (const std::string &str) |
Checks whether a string only contains alpha-numeric characters. More... | |
static const bool | isAlnum (const unsigned char &chr) |
Checks whether a character is alpha-numeric. More... | |
static const bool | isHex (const unsigned char &chr) |
Checks whether a string only contains hexadecimal characters. More... | |
static const bool | isIP (const std::string &str) |
Checks whether a string could be a valid IPv4/IPv6. More... | |
static const size_t | findLast (const std::string &str, const std::string &flag) |
Finds the last occurrence of the given sequence in the given string. More... | |
static const bool | startsWith (const std::string &str, const std::string &flag) |
Checks if a string starts with the given sequence. More... | |
static const bool | endsWith (const std::string &str, const std::string &flag) |
Checks if a string ends with the given sequence. More... | |
static const bool | contains (const std::string &str, const std::string &flag) |
Checks if a string contains the given sequence. More... | |
static std::string | strip (const std::string &str, const std::string &chars=" \n\t\b\r\v") |
Strips the given characters from both the left and the right side of a string. More... | |
static std::string | lstrip (const std::string &str, const std::string &chars=" \n\t\b\r\v") |
Strips the given characters from the left side of a string. More... | |
static std::string | rstrip (const std::string &str, const std::string &chars=" \n\t\b\r\v") |
Strips the given characters from the right side of a string. More... | |
static std::string | lstripUntil (const std::string &str, const std::string &chr, const bool &inclusive=true, const bool &consecutives=true) |
Strips everything from a string starting from the left side untill the delimiter is found (a.k.a. cut) More... | |
static void | split (std::vector< std::string > &list, const std::string &target_str, const std::string &separator="\n") |
Splits a string using a separator. More... | |
static void | splitrip (std::vector< std::string > &list, const std::string &target_str, const std::string &separator="\n", const std::string &strip=" \n\t\b\r\v") |
Splits a string and strips all the splitted items. More... | |
static const std::string | replace (const std::string &str, const std::string &target, const std::string &replace) |
Replaces all the occurrences of a sequence with another. More... | |
static const std::string | toUpper (const std::string &str) |
Converts a string to upper case. More... | |
static const std::string | toLower (const std::string &str) |
Converts a string to lower case. More... | |
Utilities for the strings
+
+
|
+ +static | +
Checks if a string contains the given sequence.
+str | The target string |
flag | The sequence to search for |
+
|
+ +static | +
Count the occurrences of the given sequence in the given string.
+str | The target string |
+
|
+ +static | +
Checks if a string ends with the given sequence.
+str | The target string |
flag | The sequence to search for |
+
|
+ +static | +
Finds the last occurrence of the given sequence in the given string.
+str | The target string |
flag | The sequence to search for |
+
|
+ +static | +
Checks whether a string only contains alpha-numeric characters.
+str | The target string |
+
|
+ +static | +
Checks whether a character is alpha-numeric.
+str | The target character |
+
|
+ +static | +
Checks whether a string only contains alphabetic characters.
+str | The target string |
+
|
+ +static | +
Checks whether a character is alphabetic.
+str | The target character |
+
|
+ +static | +
Checks whether a string only contains hexadecimal characters.
+str | The target character |
+
|
+ +static | +
Checks whether a string could be a valid IPv4/IPv6.
+str | The target string |
+
|
+ +static | +
Checks whether a string only contains numeric characters.
+str | The target string |
+
|
+ +static | +
Checks whether character is numeric.
+str | The target character |
+
|
+ +static | +
Strips the given characters from the left side of a string.
+str | The target string |
chars | The characters to strip away |
+
|
+ +static | +
Strips everything from a string starting from the left side untill the delimiter is found (a.k.a. cut)
+str | The target string |
chr | The delimiter |
inclusive | Whether to also strip the delimiter or not |
consecutives | Whether to strip all the occurrences of the delimiter if they're consecutive |
+
|
+ +static | +
Replaces all the occurrences of a sequence with another.
+str | The target string |
target | The sequence which will be replaced |
replace | The sequence to be used to replace the target |
+
|
+ +static | +
Strips the given characters from the right side of a string.
+str | The target string |
chars | The characters to strip away |
+
|
+ +static | +
Splits a string using a separator.
+list | Will hold the splitted content |
target_str | The target string |
separator | The sequence to use as separator |
+
|
+ +static | +
Splits a string and strips all the splitted items.
+list | Will hold the splitted content |
target_str | The target string |
separator | The sequence to use as separator |
strip | The characters to strip away |
+
|
+ +static | +
Checks if a string starts with the given sequence.
+str | The target string |
flag | The sequence to search for |
+
|
+ +static | +
Strips the given characters from both the left and the right side of a string.
+str | The target string |
chars | The characters to strip away |
+
|
+ +static | +
Converts a string to lower case.
+str | The target string |
+
|
+ +static | +
Converts a string to upper case.
+str | The target string |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for StyleSec, including all inherited members.
+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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <stylesheets.h>
+Static Public Member Functions | |
static void | getStyleSheet (QString &stylesheet, const QString &icons_theme, const int &theme_id) |
Provides the requested stylesheet. More... | |
+Static Private Member Functions | |
static void | makeStyleSheet (QString &ss, const std::unordered_map< std::string, QString > &style, const QString &theme) |
Builds the final stylesheet upon the generic model. More... | |
Utilities for the stylesheets
+
+
|
+ +static | +
Provides the requested stylesheet.
+stylesheet | Will hold the stylesheet |
icons_theme | The theme selected for the Icons |
theme_id | The theme selected for the Window |
+
|
+ +staticprivate | +
Builds the final stylesheet upon the generic model.
+ss | Will hold the stylesheet |
style | The key-value pairs to be applied at the generic |
theme | The theme selected for the Icons |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for TR, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <shared.h>
TR.
+Fictitious class for the translations
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for TextBrowser, including all inherited members.
+getColorScheme() | TextBrowser | |
getColorSchemeID() | TextBrowser | |
getFont() | TextBrowser | |
getFontFamily() | TextBrowser | |
getWideLinesUsage() | TextBrowser | |
makePreview(QString &content) | 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 |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <tb.h>
+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. | |
+void | setWideLinesUsage (const bool &use_wide_lines) |
Sets whether to use wide lines or not. | |
+void | setColorScheme (const int &color_scheme_id, const std::unordered_map< std::string, QString > &color_scheme) |
Stes the given color scheme as the one in use. | |
+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... | |
Perform operations for files visualization
+void TextBrowser::makePreview | +( | +QString & | +content | ) | ++ |
Builds the preview which will be shown in the configs tab.
+content | Will hold the preview string |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for VecOps, including all inherited members.
+contains(const std::vector< int > &list, const int &flag) | VecOps | static |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <vectors.h>
+Static Public Member Functions | |
static const bool | contains (const std::vector< int > &list, const int &flag) |
Checks if a vector of integers contains an element. More... | |
Utilities for the vectors
+
+
|
+ +static | +
Checks if a vector of integers contains an element.
+list | The target vector |
flag | The element to search for |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
+list | The target vector |
flag | The element to search for |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
This is the complete list of members for WebServerException, including all inherited members.
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
#include <exceptions.h>
Exception related to a Web Server
++ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Directories | |
directory | craphelp |
directory | crapinfo |
directory | craplog |
directory | crapup |
directory | crapview |
directory | dialogs |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Directories | |
directory | modules |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Directories | |
directory | crapnote |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+Directories | |
directory | modules |
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+
+ |
+ LogDoctor 2.00
+
+ Parse Apache2/Nginx/IIS logs and create statistics
+ |
+