original_string: protected function writeLog($operation, $info_to_log)
      {
          $serverName = php_uname('n');
  
          if (isset($_SERVER['SERVER_NAME'])) {
              $serverName = $_SERVER['SERVER_NAME'];
          }
  
          $fh = fopen($this->mpay24Sdk->getMpay24LogPath(), 'a+') or die("can't open file");
          $MessageDate = date("Y-m-d H:i:s");
          $Message     = $MessageDate . " " . $serverName . " Mpay24 : ";
          $result      = $Message . "$operation : $info_to_log\n";
          fwrite($fh, $result);
          fclose($fh);
      }
code: protected function writeLog($operation, $info_to_log)
      {
          $serverName = php_uname('n');
  
          if (isset($_SERVER['SERVER_NAME'])) {
              $serverName = $_SERVER['SERVER_NAME'];
          }
  
          $fh = fopen($this->mpay24Sdk->getMpay24LogPath(), 'a+') or die("can't open file");
          $MessageDate = date("Y-m-d H:i:s");
          $Message     = $MessageDate . " " . $serverName . " Mpay24 : ";
          $result      = $Message . "$operation : $info_to_log\n";
          fwrite($fh, $result);
          fclose($fh);
      }
code_tokens: protected function writeLog ( $ operation , $ info_to_log ) { $ serverName = php_uname ( 'n' ) ; if ( isset ( $ _SERVER [ 'SERVER_NAME' ] ) ) { $ serverName = $ _SERVER [ 'SERVER_NAME' ] ; } $ fh = fopen ( $ this -> mpay24Sdk -> getMpay24LogPath ( ) , 'a+' ) or die ( "can't open file" ) ; $ MessageDate = date ( "Y-m-d H:i:s" ) ; $ Message = $ MessageDate . " " . $ serverName . " Mpay24 : " ; $ result = $ Message . "$operation : $info_to_log\n" ; fwrite ( $ fh , $ result ) ; fclose ( $ fh ) ; }
docstring: Write a log into a file, file system, data base
  
  @param string $operation   The operation, which is to log: GetPaymentMethods, Pay, PayWithProfile, Confirmation, UpdateTransactionStatus, ClearAmount, CreditAmount, CancelTransaction, etc.
  @param string $info_to_log The information, which is to log: request, response, etc.
docstring_tokens: Write a log into a file file system data base