tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1175713 - /tomcat/trunk/java/org/apache/juli/OneLineFormatter.java
Date Mon, 26 Sep 2011 08:39:06 GMT
Author: rjung
Date: Mon Sep 26 08:39:05 2011
New Revision: 1175713

URL: http://svn.apache.org/viewvc?rev=1175713&view=rev
Log:
Add thread name to OneLineFormatter.

Modified:
    tomcat/trunk/java/org/apache/juli/OneLineFormatter.java

Modified: tomcat/trunk/java/org/apache/juli/OneLineFormatter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/OneLineFormatter.java?rev=1175713&r1=1175712&r2=1175713&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/OneLineFormatter.java (original)
+++ tomcat/trunk/java/org/apache/juli/OneLineFormatter.java Mon Sep 26 08:39:05 2011
@@ -76,6 +76,12 @@ public class OneLineFormatter extends Fo
         sb.append(' ');
         sb.append(record.getLevel());
 
+        // Thread
+        sb.append(' ');
+        sb.append('[');
+        sb.append(Thread.currentThread().getName());
+        sb.append(']');
+
         // Source
         sb.append(' ');
         sb.append(record.getSourceClassName());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message