/** * 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); } }