abstract class AbstractBackend implements BackendInterface (View source)

An abstract Log backend

Properties

protected int $severityThreshold

One of the LOG_* constants. Anything below that will be filtered out.

protected bool $logIpAddress

Flag telling if the IP address of the current client (if available) should be logged.

Methods

__construct(mixed $options = [])

Constructs this log backend

void
setSeverityThreshold(int $severityThreshold)

The maximum severity to log, anything less severe will not be logged.

void
setLogIpAddress(bool $logIpAddress)

Enables or disables logging of IP addresses.

Details

__construct(mixed $options = [])

Constructs this log backend

Parameters

mixed $options

Configuration options - depends on the actual backend

void setSeverityThreshold(int $severityThreshold)

The maximum severity to log, anything less severe will not be logged.

Parameters

int $severityThreshold

One of the LOG_* constants

Return Value

void

void setLogIpAddress(bool $logIpAddress)

Enables or disables logging of IP addresses.

Parameters

bool $logIpAddress

Set to true to enable logging of IP address, or false to disable

Return Value

void