NullBackend
class NullBackend extends AbstractBackend (View source)
A backend which just ignores everything
Properties
protected int | $severityThreshold | One of the LOG_* constants. Anything below that will be filtered out. |
from AbstractBackend |
protected bool | $logIpAddress | Flag telling if the IP address of the current client (if available) should be logged. |
from AbstractBackend |
Methods
void
setSeverityThreshold(int $severityThreshold)
The maximum severity to log, anything less severe will not be logged.
from
AbstractBackend
void
setLogIpAddress(bool $logIpAddress)
Enables or disables logging of IP addresses.
from
AbstractBackend
void
open()
Does nothing
void
append(string $message, int $severity = 1, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null)
Ignores the call
void
close()
Does nothing
Details
__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.
void
open()
Does nothing
void
append(string $message, int $severity = 1, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null)
Ignores the call
void
close()
Does nothing