LogDoctor/docs/html/classCraplogParserAsync.html

12 KiB

<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> </head>
LogDoctor 3.00
Parse Apache2/Nginx/IIS logs and view dinamically generated statistics
Loading...
Searching...
No Matches
CraplogParserAsync Class Reference
Inheritance diagram for CraplogParserAsync:
CraplogParserInterface

Private Member Functions

void joinLogLines (std::promise< logs_lines_t > &log_lines, const logs_file_t &logs_file)
 Reads the selected files and append the resulting lines to the list.
 
void parseLogLines (std::future< logs_lines_t > &log_lines)
 Parses the lines in the list and stores their data in the data collection.
 
void storeLogLines ()
 Handles the process of storing data in the database.
 
bool storeData (QSqlDatabase &db)
 Stores the data collection in the logs Collection database.
 

Member Function Documentation

◆ joinLogLines()

void CraplogParserAsync::joinLogLines ( std::promise< logs_lines_t > &  log_lines,
const logs_file_t &  logs_file 
)
private

Reads the selected files and append the resulting lines to the list.

Exceptions
GenericException

◆ parseLogLines()

void CraplogParserAsync::parseLogLines ( std::future< logs_lines_t > &  log_lines)
private

Parses the lines in the list and stores their data in the data collection.

Exceptions
LogParserException

◆ storeData()

bool CraplogParserAsync::storeData ( QSqlDatabase &  db)
private

Stores the data collection in the logs Collection database.

Parameters
dbA database instance, already initizlized
Returns
Whether the operation has been successful or not
Exceptions
WebServerException

◆ storeLogLines()

void CraplogParserAsync::storeLogLines ( )
private

Handles the process of storing data in the database.

See also
storeData()

The documentation for this class was generated from the following files:
  • logdoctor/modules/craplog/modules/workers/parser_async.h
  • logdoctor/modules/craplog/modules/workers/parser_async.cpp

Generated by doxygen 1.9.8 </html>