mcconnell    2003/06/15 10:44:46

  Modified:    merlin/merlin-platform/tutorials/includes/src/java/tutorial
                        TestComponent.java
  Log:
  Update to demonstation target based overrides of logging priority.
  
  Revision  Changes    Path
  1.2       +8 -1      
avalon-sandbox/merlin/merlin-platform/tutorials/includes/src/java/tutorial/TestComponent.java
  
  Index: TestComponent.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/merlin/merlin-platform/tutorials/includes/src/java/tutorial/TestComponent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestComponent.java        10 Jun 2003 02:12:24 -0000      1.1
  +++ TestComponent.java        15 Jun 2003 17:44:46 -0000      1.2
  @@ -36,7 +36,14 @@
       public void configure( Configuration config ) throws
       ConfigurationException    
       {
  -        getLogger().info( "source: " + config.getChild( "source" ).getValue( 
"unknown" ) );
  +        if( getLogger().isDebugEnabled() )
  +        {
  +            getLogger().debug( "configuration" );
  +        }
  +        if( getLogger().isInfoEnabled() )
  +        {
  +            getLogger().info( "source: " + config.getChild( "source" ).getValue( 
"unknown" ) );
  +        }
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to