__construct()
getRow()
_convertFormatToRegEx()
_parseLog()
_processApacheLogCommand()
$file
$format
$logPieces
$rows
__construct(string $logFile, string $format) : null
string
The log to parse
string
The Apache CustomLog/LogFormat for the log file
null
getRow(int $row) : \apacheLogParser\array[int]ApacheLogRecord | \apacheLogParser\ApacheLogRecord
If this is the first time calling it, the log will be parsed before returning a record.
int
[Optional] Default = -1 If -1, returns all records in an array
\apacheLogParser\array[int]ApacheLogRecord
\apacheLogParser\ApacheLogRecord
_convertFormatToRegEx() : string
string
_parseLog() : void
_processApacheLogCommand(string $command, string $segment) : string
todo | This is not complete, there are a number of directives that should be made more accurate or that haven't been created yet |
---|---|
todo | This doesn't handle < or > modifiers except for the %...s directive |
string
string
string
$file : string
$format : string
see | \apacheLogParser\https://httpd.apache.org/docs/2.0/mod/mod_log_config.html |
---|
$logPieces : \apacheLogParser\array[int]string
$rows : \apacheLogParser\array[int]ApacheLogRecord