PHP Class eZ\Publish\Core\Persistence\Cache\PersistenceLogger

Stops logging details when reaching $maxLogCalls to conserve memory use
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$calls array
$count integer
$logCalls boolean
$unCachedHandlers array

Méthodes publiques

Méthode Description
__construct ( boolean $logCalls = true )
getCalls ( ) : array
getCount ( ) : integer
getLoadedUnCachedHandlers ( ) : array
getName ( ) : string
isCallsLoggingEnabled ( ) : boolean
logCall ( string $method, array $arguments = [] ) Log SPI calls with method name and arguments until $maxLogCalls is reached.
logUnCachedHandler ( string $handler ) Log uncached handler being loaded.

Method Details

__construct() public méthode

public __construct ( boolean $logCalls = true )
$logCalls boolean Flag to enable logging of calls or not, should be disabled in prod

getCalls() public méthode

public getCalls ( ) : array
Résultat array

getCount() public méthode

public getCount ( ) : integer
Résultat integer

getLoadedUnCachedHandlers() public méthode

public getLoadedUnCachedHandlers ( ) : array
Résultat array

getName() public méthode

public getName ( ) : string
Résultat string

isCallsLoggingEnabled() public méthode

public isCallsLoggingEnabled ( ) : boolean
Résultat boolean

logCall() public méthode

Log SPI calls with method name and arguments until $maxLogCalls is reached.
public logCall ( string $method, array $arguments = [] )
$method string
$arguments array

logUnCachedHandler() public méthode

Log uncached handler being loaded.
public logUnCachedHandler ( string $handler )
$handler string

Property Details

$calls protected_oe property

protected array $calls
Résultat array

$count protected_oe property

protected int $count
Résultat integer

$logCalls protected_oe property

protected bool $logCalls
Résultat boolean

$unCachedHandlers protected_oe property

protected array $unCachedHandlers
Résultat array