You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2005/11/13 08:26:29 UTC

svn commit: r332936 - /tomcat/sandbox/java/org/apache/tomcat/util/log/JdkLoggerFormatter.java

Author: costin
Date: Sat Nov 12 23:26:28 2005
New Revision: 332936

URL: http://svn.apache.org/viewcvs?rev=332936&view=rev
Log:
Better layout

Modified:
    tomcat/sandbox/java/org/apache/tomcat/util/log/JdkLoggerFormatter.java

Modified: tomcat/sandbox/java/org/apache/tomcat/util/log/JdkLoggerFormatter.java
URL: http://svn.apache.org/viewcvs/tomcat/sandbox/java/org/apache/tomcat/util/log/JdkLoggerFormatter.java?rev=332936&r1=332935&r2=332936&view=diff
==============================================================================
--- tomcat/sandbox/java/org/apache/tomcat/util/log/JdkLoggerFormatter.java (original)
+++ tomcat/sandbox/java/org/apache/tomcat/util/log/JdkLoggerFormatter.java Sat Nov 12 23:26:28 2005
@@ -69,12 +69,6 @@
         // pad to 8 to make it more readable 
         for( int i=0; i<8-buf.length(); i++ ) { buf.append(" "); }
         
-        // Append the name of the log instance if so configured
-        buf.append(name);
-        
-        // pad to 20 chars 
-        for( int i=0; i<8-buf.length(); i++ ) { buf.append(" "); }
-        
         //      Append a readable representation of the log level.
         switch(level) {
          case LOG_LEVEL_TRACE: buf.append(" T "); break;
@@ -86,7 +80,13 @@
          default: buf.append("   ");
          }
          
+
+        // Append the name of the log instance if so configured
+        buf.append(name);
         
+        // pad to 20 chars 
+        for( int i=0; i<8-buf.length(); i++ ) { buf.append(" "); }
+                
         // Append the message
         buf.append(message);
         



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