avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/logging DefaultLoggingService.java
Date Tue, 15 Apr 2003 02:53:08 GMT
mcconnell    2003/04/14 19:53:08

  Modified:    merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/logging
                        DefaultLoggingService.java
  Log:
  Addition of support for isolating appliance instances into the system logging category space.
  
  Revision  Changes    Path
  1.3       +15 -6     avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/logging/DefaultLoggingService.java
  
  Index: DefaultLoggingService.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/lifecycle/logging/DefaultLoggingService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultLoggingService.java	11 Apr 2003 19:52:13 -0000	1.2
  +++ DefaultLoggingService.java	15 Apr 2003 02:53:08 -0000	1.3
  @@ -147,11 +147,20 @@
   
               String path = appliance.getPath();
   
  -            LoggingDirective logging = appliance.getLoggingDirective();
  -            m_manager.addCategories( path, logging );
  -
  -            Logger logger = m_manager.getLoggerForCategory( path );
  -            ((LogEnabled) object).enableLogging( logger );
  +            if( appliance instanceof Appliance )
  +            {
  +                LoggingDirective logging = appliance.getLoggingDirective();
  +                m_manager.addSystemCategories( path, logging );
  +                Logger logger = m_manager.getSystemLoggerForCategory( path );
  +                ((LogEnabled) object).enableLogging( logger );
  +            }
  +            else
  +            {
  +                LoggingDirective logging = appliance.getLoggingDirective();
  +                m_manager.addCategories( path, logging );
  +                Logger logger = m_manager.getLoggerForCategory( path );
  +                ((LogEnabled) object).enableLogging( logger );
  +            }
           }
       }
   }
  
  
  

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


Mime
View raw message