/**
  * @param string $fileName
  * @param string $profileName
  */
 public function writeLog($fileName, $profileName)
 {
     $dbAdapter = $this->getDbAdapter();
     $messages = $dbAdapter->getLogMessages();
     $state = $dbAdapter->getLogState();
     $status = isset($state) ? $state : 'false';
     if (!$messages || empty($messages)) {
         return;
     }
     $this->logger->write($messages, $status, $this->dataSession->getEntity());
     $logDataStruct = new LogDataStruct(date("Y-m-d H:i:s"), $fileName, $profileName, implode("\n", $messages), $status);
     $this->logger->writeToFile($logDataStruct);
 }
 /**
  * @param string $writeStatus
  * @param string $filename
  * @param string $profileName
  * @param string $logMessage
  * @param string $status
  * @param Session $session
  */
 protected function logProcessing($writeStatus, $filename, $profileName, $logMessage, $status, Session $session)
 {
     $this->logger->write($logMessage, $writeStatus, $session);
     $logDataStruct = new LogDataStruct(date("Y-m-d H:i:s"), $filename, $profileName, $logMessage, $status);
     $this->logger->writeToFile($logDataStruct);
 }