LogDoctor 2.05
Parse Apache2/Nginx/IIS logs and view dinamically generated statistics
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FormatOps Class Reference

FormatOps. More...

#include <formats.h>

Public Member Functions

const LogsFormat processApacheFormatString (const std::string &format_string) const
 Processes the given string to extrapolate the format for Apache2.
 
const LogsFormat processNginxFormatString (const std::string &format_string) const
 Processes the given string to extrapolate the format for Nginx.
 
const LogsFormat processIisFormatString (const std::string &format_string, const int &log_module) const
 Processes the given string to extrapolate the format for the IIS.
 
const QString getApacheLogSample (const LogsFormat &log_format) const
 Returns a log line sample based on the given format.
 
const QString getNginxLogSample (const LogsFormat &log_format) const
 Returns a log line sample based on the given format.
 
const QString getIisLogSample (const LogsFormat &log_format) const
 Returns a log line sample based on the given format.
 

Private Attributes

const std::unordered_map< std::string, std::string > APACHE_ALF
 < Access logs fields formats
 
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 (W3C)
 

Detailed Description

FormatOps.

Operations for the logs formats

Member Function Documentation

◆ getApacheLogSample()

const QString FormatOps::getApacheLogSample ( const LogsFormat log_format) const

Returns a log line sample based on the given format.

Parameters
log_formatThe logs format to use to build the sample
Returns
The sample line
See also
LogsFormat, Craplog::getLogsFormatSample()

◆ getIisLogSample()

const QString FormatOps::getIisLogSample ( const LogsFormat log_format) const

Returns a log line sample based on the given format.

Parameters
log_formatThe logs format to use to build the sample
Returns
The sample line
See also
LogsFormat, Craplog::getLogsFormatSample()

◆ getNginxLogSample()

const QString FormatOps::getNginxLogSample ( const LogsFormat log_format) const

Returns a log line sample based on the given format.

Parameters
log_formatThe logs format to use to build the sample
Returns
The sample line
See also
LogsFormat, Craplog::getLogsFormatSample()

◆ processApacheFormatString()

const LogsFormat FormatOps::processApacheFormatString ( const std::string &  format_string) const

Processes the given string to extrapolate the format for Apache2.

Parameters
format_stringThe format string to process
Returns
The logs format
Exceptions
LogFormatException
See also
LogsFormat

◆ processIisFormatString()

const LogsFormat FormatOps::processIisFormatString ( const std::string &  format_string,
const int &  log_module 
) const

Processes the given string to extrapolate the format for the IIS.

Parameters
format_stringThe format string to process
log_moduleThe ID of the log module to use
Returns
The logs format
Exceptions
LogFormatException
See also
LogsFormat

◆ processNginxFormatString()

const LogsFormat FormatOps::processNginxFormatString ( const std::string &  format_string) const

Processes the given string to extrapolate the format for Nginx.

Parameters
format_stringThe format string to process
Returns
The logs format
Exceptions
LogFormatException
See also
LogsFormat

Member Data Documentation

◆ APACHE_ALF

const std::unordered_map<std::string, std::string> FormatOps::APACHE_ALF
private

< Access logs fields formats

Composed access logs fields formats


The documentation for this class was generated from the following files: