PHP Class Neos\Flow\Log\Backend\AbstractBackend

Inheritance: implements Neos\Flow\Log\Backend\BackendInterface
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

getFormattedVarDump() protected méthode

..) 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
Résultat string text output

setLogIpAddress() public méthode

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
Résultat void

setSeverityThreshold() public méthode

The maximum severity to log, anything less severe will not be logged.
public setSeverityThreshold ( integer $severityThreshold ) : void
$severityThreshold integer One of the LOG_* constants
Résultat 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
Résultat boolean

$severityThreshold protected_oe property

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