Methods

Gets a log variable

__get(string $varName) : mixed

Parameters

$varName

string

Exceptions

\apacheLogParser\InvalidArgumentException If the requested variable doesn't exist

Returns

mixed

Gets a logged cookie value

getCookie(string $pos) : string

Parameters

$pos

string

The cookie to be looked up

Exceptions

\apacheLogParser\InvalidArgumentException If the value doesn't exist

Returns

string

Gets a logged environment variable value

getEnvironment(string $pos) : string

Parameters

$pos

string

The environment variable to be looked up

Exceptions

\apacheLogParser\InvalidArgumentException If the value doesn't exist

Returns

string

Gets a logged module value

getModule(string $pos) : string

Parameters

$pos

string

The module to be looked up

Exceptions

\apacheLogParser\InvalidArgumentException If the value doesn't exist

Returns

string

Gets a logged request header value

getReqHeader(string $pos) : string

Parameters

$pos

string

The request header to be looked up

Exceptions

\apacheLogParser\InvalidArgumentException If the value doesn't exist

Returns

string

Gets a logged response header value

getRespHeader(string $pos) : string

Parameters

$pos

string

The response header to be looked up

Exceptions

\apacheLogParser\InvalidArgumentException If the value doesn't exist

Returns

string

Stores a parsed Apache log directive appropriately

logValue(string $logVariable, string $value) : void

Parameters

$logVariable

string

$value

string

Exceptions

\apacheLogParser\InvalidArgumentException If the logVariable is not a valid variable

 Properties

 

Remote host

$clientIP : string

 

Connection status when response is completed One of "aborted","keep-alive","closed"

$completeConnStatus : string

 

The contents of cookies in the request sent to the server.

$cookie : \apacheLogParser\array[string]string

 

The contents of environment variables

$environment : \apacheLogParser\array[string]string

 

Filename

$filename : string

 

Status.

$firstStatus : int

For requests that got internally redirected, this is the status of the original request

 

Status.

$lastStatus : int

For requests that got internally redirected, this is the status of the last request

 

Bytes received, including request and headers, cannot be zero.

$libIOBytesIn : int

You need to enable mod_logio to use this.

 

Bytes sent, including headers, cannot be zero.

$libIOBytesOut : int

You need to enable mod_logio to use this.

 

Local IP-address

$localIP : string

 

The contents of notes from other modules.

$module : \apacheLogParser\array[string]string

 

The process ID of the child that serviced the request.

$pid : int

 

The canonical port of the server serving the request

$port : int

 

The request protocol

$protocol : string

 

The query string (prepended with a ? if a query string exists, otherwise an empty string)

$queryString : string

 

Remote IP-address

$remoteIP : string

 

Remote logname (from identd, if supplied). This will return a dash unless IdentityCheck is set On.

$remoteLogname : string

 

The contents of header line(s) in the request sent to the server.

$reqHeader : \apacheLogParser\array[string]string

Changes made by other modules (e.g. mod_headers) affect this.

 

The request method

$reqMethod : string

 

Time the request was received

$reqTime : \apacheLogParser\DateTime

 

First line of request

$request : string

 

Size of response in bytes, excluding HTTP headers.

$respBytes : int

 

The contents of header line(s) in the reply.

$respHeader : \apacheLogParser\array[string]string

 

The time taken to serve the request, in microseconds.

$respMicro : int

 

The time taken to serve the request, in seconds.

$respSec : int

 

The canonical ServerName of the server serving the request.

$serverName : string

 

The thread id of the child that serviced the request.

$tid : int

 

The URL path requested, not including any query string.

$url : string

 

The server name according to the UseCanonicalName setting.

$useCanonicalServerName : string

 

Remote user (from auth; may be bogus if return status (%s) is 401)

$user : string