[logback-dev] svn commit: r1821 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/spi

noreply.ceki at qos.ch noreply.ceki at qos.ch
Tue Oct 7 15:51:52 CEST 2008


Author: ceki
Date: Tue Oct  7 15:51:52 2008
New Revision: 1821

Modified:
   logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/spi/LoggingEvent.java

Log:
minor improvement to toString method in LoggingEvent

Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/spi/LoggingEvent.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/spi/LoggingEvent.java	(original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/spi/LoggingEvent.java	Tue Oct  7 15:51:52 2008
@@ -323,10 +323,10 @@
 
   @Override
   public String toString() {
-    StringBuffer sb = new StringBuffer('[');
+    StringBuilder sb = new StringBuilder();
+    sb.append('[');
     sb.append(level).append("] ");
     sb.append(getFormattedMessage());
-    sb.append("\n");
     return sb.toString();
   }
 }


More information about the logback-dev mailing list