mcconnell    2002/12/16 21:04:45

  Modified:    assembly/src/test/org/apache/avalon/playground
                        BasicComponent.java ComplexComponent.java
                        ComplexComponent.xinfo DemoManager.java
                        ExploitationManager.java SimpleComponent.java
  Log:
  General enhancement to logging messages.
  
  Revision  Changes    Path
  1.3       +1 -1      
avalon-sandbox/assembly/src/test/org/apache/avalon/playground/BasicComponent.java
  
  Index: BasicComponent.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/BasicComponent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BasicComponent.java       7 Dec 2002 09:34:29 -0000       1.2
  +++ BasicComponent.java       17 Dec 2002 05:04:45 -0000      1.3
  @@ -140,7 +140,7 @@
        */
       public void stop()
       {
  -        getLogger().info( "stopping" );
  +        getLogger().debug( "stopping" );
       }
   
       /**
  
  
  
  1.3       +4 -3      
avalon-sandbox/assembly/src/test/org/apache/avalon/playground/ComplexComponent.java
  
  Index: ComplexComponent.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/ComplexComponent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ComplexComponent.java     7 Dec 2002 09:34:29 -0000       1.2
  +++ ComplexComponent.java     17 Dec 2002 05:04:45 -0000      1.3
  @@ -58,6 +58,7 @@
   import org.apache.avalon.framework.activity.Disposable;
   import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.activity.Startable;
  +import org.apache.avalon.framework.logger.Logger;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.avalon.framework.service.ServiceManager;
   import org.apache.avalon.framework.service.Serviceable;
  @@ -142,10 +143,10 @@
           m_simple = (SimpleService)m_manager.lookup( "simple" );
           m_basic = (BasicService)m_manager.lookup( "basic" );
   
  -        getLogger().getChildLogger( "init" ).debug( "ready" );
  -        if( getLogger().isInfoEnabled() )
  +        Logger logger = getLogger().getChildLogger( "internal" );
  +        if( logger.isInfoEnabled() )
           {
  -            getLogger().info( "ready" );
  +            logger.debug( "ready" );
           }
       }
   
  
  
  
  1.3       +1 -1      
avalon-sandbox/assembly/src/test/org/apache/avalon/playground/ComplexComponent.xinfo
  
  Index: ComplexComponent.xinfo
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/ComplexComponent.xinfo,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ComplexComponent.xinfo    7 Dec 2002 09:34:29 -0000       1.2
  +++ ComplexComponent.xinfo    17 Dec 2002 05:04:45 -0000      1.3
  @@ -20,7 +20,7 @@
     </info>
   
     <loggers>
  -     <logger name="init"/>
  +     <logger name="internal"/>
     </loggers>
   
     <services>
  
  
  
  1.2       +1 -1      
avalon-sandbox/assembly/src/test/org/apache/avalon/playground/DemoManager.java
  
  Index: DemoManager.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/DemoManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DemoManager.java  24 Nov 2002 12:50:46 -0000      1.1
  +++ DemoManager.java  17 Dec 2002 05:04:45 -0000      1.2
  @@ -83,7 +83,7 @@
        */
       public void initialize()
       {
  -        getLogger().debug( "initializing extension" );
  +        getLogger().debug( "initialize" );
       }
   
       //=======================================================================
  
  
  
  1.2       +2 -2      
avalon-sandbox/assembly/src/test/org/apache/avalon/playground/ExploitationManager.java
  
  Index: ExploitationManager.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/ExploitationManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExploitationManager.java  24 Nov 2002 12:50:46 -0000      1.1
  +++ ExploitationManager.java  17 Dec 2002 05:04:45 -0000      1.2
  @@ -79,7 +79,7 @@
        */
       public void initialize()
       {
  -        getLogger().info( "initialize" );
  +        getLogger().debug( "initialize" );
       }
   
       //=======================================================================
  @@ -91,7 +91,7 @@
        */
       public void dispose()
       {
  -        getLogger().info( "dispose" );
  +        getLogger().debug( "dispose" );
       }
   
       //=======================================================================
  
  
  
  1.2       +3 -3      
avalon-sandbox/assembly/src/test/org/apache/avalon/playground/SimpleComponent.java
  
  Index: SimpleComponent.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/assembly/src/test/org/apache/avalon/playground/SimpleComponent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleComponent.java      24 Nov 2002 12:50:46 -0000      1.1
  +++ SimpleComponent.java      17 Dec 2002 05:04:45 -0000      1.2
  @@ -120,7 +120,7 @@
        */
       public void incarnate()
       {
  -        getLogger().info( "incarnation stage" );
  +        getLogger().debug( "incarnation stage" );
       }
   
       /**
  @@ -128,7 +128,7 @@
        */
       public void etherialize()
       {
  -        getLogger().info( "etherialize stage" );
  +        getLogger().debug( "etherialize stage" );
       }
   
   
  @@ -155,7 +155,7 @@
       public void initialize()
       {
           getLogger().debug( "initialize" );
  -        getLogger().info( "context type manager: " + 
Thread.currentThread().getContextClassLoader() );
  +        getLogger().debug( "context: " + 
Thread.currentThread().getContextClassLoader() );
           doObjective();
       }
   
  
  
  

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

Reply via email to