[jboss-cvs] apache/commons-logging/src/java/org/apache/commons/logging ...

Scott Stark scott.stark at jboss.com
Sun Feb 11 15:24:39 EST 2007


  User: starksm 
  Date: 07/02/11 15:24:39

  Modified:    commons-logging/src/java/org/apache/commons/logging  Tag:
                        JBoss_Apache_Common_Logging_Branch_1_1
                        LogFactory.java
  Log:
  Use logRawDiagnostic(String msg, Throwable t)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.4.1   +8 -1      apache/commons-logging/src/java/org/apache/commons/logging/LogFactory.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LogFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/apache/commons-logging/src/java/org/apache/commons/logging/LogFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.3.4.1
  diff -u -b -r1.3 -r1.3.4.1
  --- LogFactory.java	9 Feb 2007 06:57:17 -0000	1.3
  +++ LogFactory.java	11 Feb 2007 20:24:39 -0000	1.3.4.1
  @@ -45,7 +45,7 @@
    * @author Craig R. McClanahan
    * @author Costin Manolache
    * @author Richard A. Sitze
  - * @version $Revision: 1.3 $ $Date: 2007/02/09 06:57:17 $
  + * @version $Revision: 1.3.4.1 $ $Date: 2007/02/11 20:24:39 $
    */
   
   public abstract class LogFactory {
  @@ -1581,6 +1581,13 @@
               diagnosticsStream.flush();
           }
       }
  +    protected static final void logRawDiagnostic(String msg, Throwable t) {
  +       if (diagnosticsStream != null) {
  +           diagnosticsStream.println(msg);
  +           diagnosticsStream.flush();
  +           t.printStackTrace(diagnosticsStream);
  +       }
  +   }
   
       /**
        * Generate useful diagnostics regarding the classloader tree for
  
  
  



More information about the jboss-cvs-commits mailing list