eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Cache\PersistenceLogger Class Reference

Log un-cached use of SPI Persistence. More...

Public Member Functions

 __construct ($logCalls=true)
 
 getCalls ()
 
 getCount ()
 
 getLoadedUnCachedHandlers ()
 
 getName ()
 
 isCallsLoggingEnabled ()
 
 logCall ($method, array $arguments=array())
 Log SPI calls with method name and arguments until $maxLogCalls is reached. More...
 
 logUnCachedHandler ($handler)
 Log uncached handler being loaded. More...
 

Public Attributes

const NAME = 'PersistenceLogger'
 

Protected Attributes

 $calls = array()
 
 $count = 0
 
 $logCalls = true
 
 $unCachedHandlers = array()
 

Detailed Description

Log un-cached use of SPI Persistence.

Stops logging details when reaching $maxLogCalls to conserve memory use

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Cache\PersistenceLogger::__construct (   $logCalls = true)
Parameters
bool$logCallsFlag to enable logging of calls or not, should be disabled in prod

Member Function Documentation

eZ\Publish\Core\Persistence\Cache\PersistenceLogger::getCalls ( )
Returns
array
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::getCount ( )
Returns
int
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::getLoadedUnCachedHandlers ( )
Returns
array
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::getName ( )
Returns
string
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::isCallsLoggingEnabled ( )
Returns
bool
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::logCall (   $method,
array  $arguments = array() 
)

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

Parameters
string$method
array$arguments
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::logUnCachedHandler (   $handler)

Log uncached handler being loaded.

Parameters
string$handler

Member Data Documentation

eZ\Publish\Core\Persistence\Cache\PersistenceLogger::$calls = array()
protected
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::$count = 0
protected
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::$logCalls = true
protected
eZ\Publish\Core\Persistence\Cache\PersistenceLogger::$unCachedHandlers = array()
protected
const eZ\Publish\Core\Persistence\Cache\PersistenceLogger::NAME = 'PersistenceLogger'

The documentation for this class was generated from the following file: