PHP Class Neos\Flow\Log\Backend\AbstractBackend

Inheritance: implements Neos\Flow\Log\Backend\BackendInterface
ファイルを表示 Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$logIpAddress boolean Flag telling if the IP address of the current client (if available) should be logged.
$severityThreshold integer One of the LOG_* constants. Anything below that will be filtered out.

Public Methods

Method Description
__construct ( mixed $options = [] ) Constructs this log backend
setLogIpAddress ( boolean $logIpAddress ) : void Enables or disables logging of IP addresses.
setSeverityThreshold ( integer $severityThreshold ) : void The maximum severity to log, anything less severe will not be logged.

Protected Methods

Method Description
getFormattedVarDump ( mixed $var, integer $spaces = 4 ) : string Returns a suitable form of a variable (be it a string, array, object .

Method Details

__construct() public method

Constructs this log backend
public __construct ( mixed $options = [] )
$options mixed Configuration options - depends on the actual backend

getFormattedVarDump() protected method

..) for logfile output
protected getFormattedVarDump ( mixed $var, integer $spaces = 4 ) : string
$var mixed The variable
$spaces integer Number of spaces to add before a line
return string text output

setLogIpAddress() public method

Enables or disables logging of IP addresses.
public setLogIpAddress ( boolean $logIpAddress ) : void
$logIpAddress boolean Set to TRUE to enable logging of IP address, or FALSE to disable
return void

setSeverityThreshold() public method

The maximum severity to log, anything less severe will not be logged.
public setSeverityThreshold ( integer $severityThreshold ) : void
$severityThreshold integer One of the LOG_* constants
return void

Property Details

$logIpAddress protected_oe property

Flag telling if the IP address of the current client (if available) should be logged.
protected bool $logIpAddress
return boolean

$severityThreshold protected_oe property

One of the LOG_* constants. Anything below that will be filtered out.
protected int $severityThreshold
return integer