Example #1
0
 /**
  * Log debug data to file
  *
  * @return void
  */
 protected function _debug()
 {
     if ($this->_config && $this->_config->getConfigValue('debug')) {
         $file = $this->_config->getMethodCode() ? "payment_{$this->_config->getMethodCode()}.log" : self::DEFAULT_LOG_FILE;
         $this->_logAdapterFactory->create(array('fileName' => $file))->log($this->_debugData);
     }
 }
Example #2
0
 /**
  * Log debug data to file
  *
  * @param mixed $debugData
  * @return void
  */
 protected function _debug($debugData)
 {
     if ($this->getDebugFlag()) {
         $this->_logAdapterFactory->create(array('fileName' => 'payment_' . $this->_config->getMethodCode() . '.log'))->setFilterDataKeys($this->_debugReplacePrivateDataKeys)->log($debugData);
     }
 }