avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject cvs commit: avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory PriorityFilterTargetFactory.java
Date Sat, 13 Mar 2004 03:48:55 GMT
niclas      2004/03/12 19:48:55

  Modified:    logger   project.xml
               logger/src/java/org/apache/avalon/excalibur/logger/factory
                        PriorityFilterTargetFactory.java
  Log:
  Fixed the use of deprecated class in Avalon-LogKit.
  
  Revision  Changes    Path
  1.8       +2 -2      avalon-excalibur/logger/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/logger/project.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- project.xml	11 Mar 2004 06:31:10 -0000	1.7
  +++ project.xml	13 Mar 2004 03:48:55 -0000	1.8
  @@ -21,7 +21,7 @@
   
       <name>excalibur-logger</name>
       <id>excalibur-logger</id>
  -    <currentVersion>1.1.1-dev</currentVersion>
  +    <currentVersion>1.2</currentVersion>
       <inceptionYear>1997</inceptionYear>
       <shortDescription>Container utility for implementing LogEnabled/Loggable support.</shortDescription>
       <description>
  @@ -55,7 +55,7 @@
           
           <dependency>
               <id>logkit</id>
  -            <version>1.2.2</version>
  +            <version>2.0</version>
           </dependency>
   
           <dependency>
  
  
  
  1.10      +6 -5      avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/PriorityFilterTargetFactory.java
  
  Index: PriorityFilterTargetFactory.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/PriorityFilterTargetFactory.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PriorityFilterTargetFactory.java	10 Mar 2004 13:54:50 -0000	1.9
  +++ PriorityFilterTargetFactory.java	13 Mar 2004 03:48:55 -0000	1.10
  @@ -23,12 +23,13 @@
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.log.LogTarget;
   import org.apache.log.Priority;
  -import org.apache.log.filter.PriorityFilter;
  +import org.apache.log.output.PriorityFilteringTarget;
   
   /**
    * PriorityFilterTargetFactory class.
    *
  - * This factory creates LogTargets with a wrapped PriorityFilter around it:
  + * This factory creates LogTargets with a wrapped PriorityFilteringTarget
  + * around it:
    *
    * <pre>
    *
  @@ -40,7 +41,7 @@
    *
    * </pre>
    * <p>
  - *  This factory creates a PriorityFilter object with a logging Priority set
  + *  This factory creates a PriorityFilteringTarget object with a logging Priority set
    *  to the value of the log-level attribute (which defaults to INFO if absent).
    *  The LogTarget to filter is described in child elements of the configuration (in
    *  the sample above named as &lt;any-target-definition/&gt;).
  @@ -65,7 +66,7 @@
       {
           final String loglevel = configuration.getAttribute( "log-level", "INFO" );
           getLogger().debug( "loglevel is " + loglevel );
  -        final PriorityFilter filter = new PriorityFilter( Priority.getPriorityForName(
loglevel ) );
  +        final PriorityFilteringTarget filter = new PriorityFilteringTarget( Priority.getPriorityForName(
loglevel ) );
   
           final Configuration[] configs = configuration.getChildren();
           for( int i = 0; i < configs.length; i++ )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message