User: user57  
  Date: 02/01/03 16:14:18

  Modified:    src/main/org/jboss/logging TracePriority.java
  Log:
   o fixed problem with BootstrapLogger which prevented it from ever
     initializing and proxying to Log4j
   o Added a org.jboss.system.BootstrapLogger.threshold prop which will be
     used until log4j is up to limit whichs priorities are enabled.
   o If log4j is not up yet, then check if the pri is enabled before printing
     anything.
  
  Revision  Changes    Path
  1.2       +23 -23    jboss/src/main/org/jboss/logging/TracePriority.java
  
  Index: TracePriority.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/logging/TracePriority.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TracePriority.java        2001/09/11 18:35:02     1.1
  +++ TracePriority.java        2002/01/04 00:14:18     1.2
  @@ -8,31 +8,31 @@
   
   import org.apache.log4j.Priority;
   
  -/** Adds a trace priority that is below the standard log4j DEBUG priority.
  - This is a custom priority that is 100 below the Priority.DEBUG_INT and
  - represents a lower priority useful for logging events that should only
  - be displayed when deep debugging is required.
  - 
  - @see org.apache.log4j.Category
  - @see org.apache.log4j.Priority
  - 
  - @author [EMAIL PROTECTED]
  - @version $Revision: 1.1 $
  +/** 
  + * Adds a trace priority that is below the standard log4j DEBUG priority.
  + * This is a custom priority that is 100 below the Priority.DEBUG_INT and
  + * represents a lower priority useful for logging events that should only
  + * be displayed when deep debugging is required.
  + *
  + * @see org.apache.log4j.Category
  + * @see org.apache.log4j.Priority
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>
  + * @version $Revision: 1.2 $
    */
  -public class TracePriority extends Priority
  +public class TracePriority 
  +   extends Priority
   {
  -  // Constants -----------------------------------------------------
      /** The integer representation of the priority, (Priority.DEBUG_INT - 100) */
      public static final int TRACE_INT = Priority.DEBUG_INT - 100;
  +   
      /** The TRACE priority object singleton */
      public static final TracePriority TRACE = new TracePriority(TRACE_INT, "TRACE");
     
  -  // Attributes ----------------------------------------------------
  -
  -  // Static --------------------------------------------------------
  -   /** Convert an integer passed as argument to a priority. If the conversion
  -    fails, then this method returns the specified default.
  -    @return the Priority object for name if one exists, defaultPriority otherwize.
  +   /** 
  +    * Convert an integer passed as argument to a priority. If the conversion
  +    * fails, then this method returns the specified default.
  +    * @return the Priority object for name if one exists, defaultPriority otherwize.
       */
      public static Priority toPriority(String name, Priority defaultPriority)
      {
  @@ -44,9 +44,11 @@
            p = Priority.toPriority(name, defaultPriority);
         return p;
      }
  -   /** Convert an integer passed as argument to a priority. If the conversion
  -    fails, then this method returns the specified default.
  -    @return the Priority object for i if one exists, defaultPriority otherwize.
  +
  +   /** 
  +    * Convert an integer passed as argument to a priority. If the conversion
  +    * fails, then this method returns the specified default.
  +    * @return the Priority object for i if one exists, defaultPriority otherwize.
       */
      public static Priority toPriority(int i, Priority defaultPriority)
      {
  @@ -58,10 +60,8 @@
         return p;
      }
   
  -  // Constructors --------------------------------------------------
      protected TracePriority(int level, String strLevel)
      {
         super(level, strLevel, 7);
      }
  -   
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to