LogDoctor 2.05
Parse Apache2/Nginx/IIS logs and view dinamically generated statistics
Loading...
Searching...
No Matches
Functions
LogOps Namespace Reference

LogOps. More...

Functions

const LogType defineFileType (const std::vector< std::string > &lines, const LogsFormat &format)
 Defines the type of a file.
 

Detailed Description

LogOps.

Operations for the logs

Function Documentation

◆ defineFileType()

const LogType LogOps::defineFileType ( const std::vector< std::string > &  lines,
const LogsFormat format 
)

Defines the type of a file.

Parameters
linesA list of (randomly picked) lines from the file to examine
formatThe logs format to use to determine if the file is valid or not
Returns
The resulting file type
See also
LogType, deepTypeCheck(), FormatOps::LogsFormat