Exceptions

exception apachelogs.Error[source]

Bases: Exception

The base class for all custom exceptions raised by apachelogs

exception apachelogs.InvalidDirectiveError[source]

Bases: Error, ValueError

Raised by the LogParser constructor when given a log format containing an invalid or malformed directive

format

The log format string containing the invalid directive

pos

The position in the log format string at which the invalid directive occurs

exception apachelogs.InvalidEntryError[source]

Bases: Error, ValueError

Raised when a attempting to parse a log entry that does not match the given log format

entry

The invalid log entry

format

The log format string the entry failed to match against

exception apachelogs.UnknownDirectiveError[source]

Bases: Error, ValueError

Raised by the LogParser constructor when given a log format containing an unknown or unsupported directive

directive

The unknown or unsupported directive