logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1419398 - in /logging/log4j/log4j2/trunk/core/src: main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java test/java/org/apache/logging/log4j/core/layout/SerializedLayoutTest.java
Date Mon, 10 Dec 2012 13:00:48 GMT
Author: ggregory
Date: Mon Dec 10 13:00:47 2012
New Revision: 1419398

URL: http://svn.apache.org/viewvc?rev=1419398&view=rev
Log:
Add a '=' in Log4jLogEvent toString().

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
    logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/SerializedLayoutTest.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java?rev=1419398&r1=1419397&r2=1419398&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
Mon Dec 10 13:00:47 2012
@@ -280,7 +280,7 @@ public class Log4jLogEvent implements Lo
         String n = name.length() == 0 ? "root" : name;
         sb.append("Logger=").append(n);
         sb.append(" Level=").append(level.name());
-        sb.append(" Message").append(message.getFormattedMessage());
+        sb.append(" Message=").append(message.getFormattedMessage());
         return sb.toString();
     }
 

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/SerializedLayoutTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/SerializedLayoutTest.java?rev=1419398&r1=1419397&r2=1419398&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/SerializedLayoutTest.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/SerializedLayoutTest.java
Mon Dec 10 13:00:47 2012
@@ -61,10 +61,10 @@ public class SerializedLayoutTest {
         "<log4j:message><![CDATA[empty mdc]]></log4j:message>\r";
 
     private static final String[] expected = {
-        "Logger=root Level=DEBUG Messagestarting mdc pattern test",
-        "Logger=root Level=DEBUG Messageempty mdc",
-        "Logger=root Level=DEBUG Messagefilled mdc",
-        "Logger=root Level=ERROR Messagefinished mdc pattern test"
+        "Logger=root Level=DEBUG Message=starting mdc pattern test",
+        "Logger=root Level=DEBUG Message=empty mdc",
+        "Logger=root Level=DEBUG Message=filled mdc",
+        "Logger=root Level=ERROR Message=finished mdc pattern test"
     };
 
 



Mime
View raw message