Author: grobmeier
Date: Fri May 22 10:42:31 2009
New Revision: 777461

URL: http://svn.apache.org/viewvc?rev=777461&view=rev
Log:
replaced \r\n with .PHP_EOL

Modified:
    incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutXml.php

Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutXml.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutXml.php?rev=777461&r1=777460&r2=777461&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutXml.php (original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutXml.php Fri May 22 
10:42:31 2009
@@ -115,16 +115,16 @@
         $level      = $event->getLevel();
         $levelStr   = $level->toString();
 
-        $buf = "<{$this->_namespacePrefix}:event logger=\"{$loggerName}\" 
level=\"{$levelStr}\" thread=\"{$thread}\" timestamp=\"{$timeStamp}\">\r\n";
+        $buf = "<{$this->_namespacePrefix}:event logger=\"{$loggerName}\" 
level=\"{$levelStr}\" thread=\"{$thread}\" timestamp=\"{$timeStamp}\">".PHP_EOL;
         $buf .= "<{$this->_namespacePrefix}:message><![CDATA["; 
         $this->appendEscapingCDATA($buf, $event->getRenderedMessage()); 
-        $buf .= "]]></{$this->_namespacePrefix}:message>\r\n";        
+        $buf .= "]]></{$this->_namespacePrefix}:message>".PHP_EOL;        
 
         $ndc = $event->getNDC();
         if($ndc != null) {
             $buf .= "<{$this->_namespacePrefix}:NDC><![CDATA[";
             $this->appendEscapingCDATA($buf, $ndc);
-            $buf .= "]]></{$this->_namespacePrefix}:NDC>\r\n";       
+            $buf .= "]]></{$this->_namespacePrefix}:NDC>".PHP_EOL;       
         }
 
         if ($this->getLocationInfo()) {
@@ -134,11 +134,11 @@
                     "file=\"" .  htmlentities($locationInfo->getFileName(), 
ENT_QUOTES) . "\" ".
                     "line=\"" .  $locationInfo->getLineNumber() . "\" ".
                     "method=\"" . $locationInfo->getMethodName() . "\" ";
-            $buf .= "/>\r\n";
+            $buf .= "/>".PHP_EOL;
 
         }
 
-        $buf .= "</{$this->_namespacePrefix}:event>\r\n\r\n";
+        $buf .= "</{$this->_namespacePrefix}:event>".PHP_EOL.PHP_EOL;
         
         return $buf;
 


Reply via email to