tested xml output
authorChristian Grobmeier <grobmeier@apache.org>
Fri, 28 Aug 2009 06:24:45 +0000 (06:24 +0000)
committerChristian Grobmeier <grobmeier@apache.org>
Fri, 28 Aug 2009 06:24:45 +0000 (06:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/log4php/trunk@808768 13f79535-47bb-0310-9956-ffa450edef68

src/main/php/appenders/LoggerAppenderSocket.php
src/main/php/layouts/LoggerLayoutXml.php

index 38c1c44..3db3f69 100644 (file)
@@ -236,7 +236,7 @@ class LoggerAppenderSocket extends LoggerAppender {
                                if(!$this->dry) {
                                        fwrite($this->sp, $this->xmlLayout->format($event));
                                } else {
-                                   echo "DRY MODE OF SOCKET APPENDER: ".$event;
+                                   echo "DRY MODE OF SOCKET APPENDER: ".$this->xmlLayout->format($event);
                                }
                        }                        
 
index b4d6ac8..768538b 100644 (file)
@@ -102,7 +102,7 @@ class LoggerLayoutXml extends LoggerLayout {
      * @return string
      */
     public function format(LoggerLoggingEvent $event) {
-        $loggerName = $event->getLoggerName();
+       $loggerName = $event->getLoggerName();
         $timeStamp  = number_format((float)($event->getTimeStamp() * 1000), 0, '', '');
         $thread     = $event->getThreadName();
         $level      = $event->getLevel();