Class

eZ\Publish\Core\Persistence\Cache\PersistenceLogger

class PersistenceLogger

Log un-cached use of SPI Persistence.

Stops logging details when reaching $maxLogCalls to conserve memory use

Constants

NAME

Methods

__construct(bool $logCalls = true)

logCall(string $method, array $arguments = array())

Log SPI calls with method name and arguments until $maxLogCalls is reached.

logUnCachedHandler(string $handler)

Log uncached handler being loaded.

string getName()

int getCount()

bool isCallsLoggingEnabled()

array getCalls()

array getLoadedUnCachedHandlers()

Details

at line 43
public __construct(bool $logCalls = true)

Parameters

bool $logCalls Flag to enable logging of calls or not, should be disabled in prod

at line 54
public logCall(string $method, array $arguments = array())

Log SPI calls with method name and arguments until $maxLogCalls is reached.

Parameters

string $method
array $arguments

at line 70
public logUnCachedHandler(string $handler)

Log uncached handler being loaded.

Parameters

string $handler

at line 81
public string getName()

Return Value

string

at line 89
public int getCount()

Return Value

int

at line 97
public bool isCallsLoggingEnabled()

Return Value

bool

at line 105
public array getCalls()

Return Value

array

at line 113
public array getLoadedUnCachedHandlers()

Return Value

array