[jboss-cvs] JBoss Messaging SVN: r7461 - trunk/src/main/org/jboss/messaging/integration/logging.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jun 25 03:11:54 EDT 2009
Author: ataylor
Date: 2009-06-25 03:11:54 -0400 (Thu, 25 Jun 2009)
New Revision: 7461
Modified:
trunk/src/main/org/jboss/messaging/integration/logging/JBMLoggerFormatter.java
Log:
removed syncronisation from log formatter
Modified: trunk/src/main/org/jboss/messaging/integration/logging/JBMLoggerFormatter.java
===================================================================
--- trunk/src/main/org/jboss/messaging/integration/logging/JBMLoggerFormatter.java 2009-06-25 04:07:44 UTC (rev 7460)
+++ trunk/src/main/org/jboss/messaging/integration/logging/JBMLoggerFormatter.java 2009-06-25 07:11:54 UTC (rev 7461)
@@ -32,12 +32,12 @@
*/
public class JBMLoggerFormatter extends java.util.logging.Formatter
{
- Date date = new Date();
- SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss,SSS");
- private String lineSeparator = System.getProperty("line.separator");
+ private static String LINE_SEPARATOR = System.getProperty("line.separator");
- public synchronized String format(LogRecord record)
+ public String format(LogRecord record)
{
+ Date date = new Date();
+ SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss,SSS");
StringBuffer sb = new StringBuffer();
// Minimize memory allocations here.
date.setTime(record.getMillis());
@@ -47,7 +47,7 @@
sb.append(record.getLoggerName()).append("]").append(" ");
sb.append(record.getMessage());
- sb.append(lineSeparator);
+ sb.append(LINE_SEPARATOR);
if (record.getThrown() != null)
{
try
More information about the jboss-cvs-commits
mailing list