Skip to content
Jason Austin edited this page Aug 19, 2013 · 1 revision

OTF provides an interface to Zend_Log for database-based logging. It is available via an action helper:

$logOptions = array(
    'attributeName' => 'accountId',
    'attributeId'   => $accountId,
);

$this->_helper->log(Zend_Log::INFO, 'Account was added', $logOptions);

attributeName and attributeId can be anything you want, but these become helpful if you want to associate a log message to a particular entity. In this case, the log was associated with an accountId.

Clone this wiki locally