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

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

Protected Properties

Property Type Description
$calls array
$count integer
$logCalls boolean
$unCachedHandlers array

Public Methods

Method 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 method

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

getCalls() public method

public getCalls ( ) : array
return array

getCount() public method

public getCount ( ) : integer
return integer

getLoadedUnCachedHandlers() public method

public getLoadedUnCachedHandlers ( ) : array
return array

getName() public method

public getName ( ) : string
return string

isCallsLoggingEnabled() public method

public isCallsLoggingEnabled ( ) : boolean
return boolean

logCall() public method

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

logUnCachedHandler() public method

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

Property Details

$calls protected_oe property

protected array $calls
return array

$count protected_oe property

protected int $count
return integer

$logCalls protected_oe property

protected bool $logCalls
return boolean

$unCachedHandlers protected_oe property

protected array $unCachedHandlers
return array