getExtra() public method

Get log message extra data
public getExtra ( ) : array
return array
Exemplo n.º 1
0
 /**
  * Processes a log record.
  *
  * @param Record $record A record to process
  *
  */
 public function processRecord(Record $record)
 {
     $backtrace = debug_backtrace();
     $backtrace = $backtrace[5];
     $extraData = $record->getExtra();
     $extraData['file'] = $backtrace['file'];
     $extraData['line'] = $backtrace['line'];
     $record->setExtra($extraData);
 }
Exemplo n.º 2
0
 /**
  * Processes a log record.
  *
  * @param Record $record Log record to process
  */
 public function processRecord(Record $record)
 {
     $extraData = $record->getExtra();
     $extraData['memoryUsage'] = memory_get_usage(true);
     $record->setExtra($extraData);
 }