Exceptions

exception apachelogs.Error[source]

Bases: Exception

The base class for all custom exceptions raised by apachelogs

exception apachelogs.InvalidDirectiveError[source]

Bases: apachelogs.errors.Error, ValueError

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

format = None

The log format string containing the invalid directive

pos = None

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

exception apachelogs.InvalidEntryError[source]

Bases: apachelogs.errors.Error, ValueError

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

entry = None

The invalid log entry

format = None

The log format string the entry failed to match against

exception apachelogs.UnknownDirectiveError[source]

Bases: apachelogs.errors.Error, ValueError

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

directive = None

The unknown or unsupported directive