avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/examples/jdbcdatasource/src/java/org/apache/avalon/examples/jdbcdatasource Main.java
Date Sat, 09 Feb 2002 16:08:01 GMT
leif        02/02/09 08:08:01

  Modified:    examples/jdbcdatasource/src/java/org/apache/avalon/examples/jdbcdatasource
                        Main.java
  Log:
  Fix the default logger names for logkit, roles and component managers.
  
  Revision  Changes    Path
  1.3       +4 -4      jakarta-avalon-excalibur/examples/jdbcdatasource/src/java/org/apache/avalon/examples/jdbcdatasource/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/examples/jdbcdatasource/src/java/org/apache/avalon/examples/jdbcdatasource/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java	8 Feb 2002 12:13:57 -0000	1.2
  +++ Main.java	9 Feb 2002 16:08:01 -0000	1.3
  @@ -33,7 +33,7 @@
    * Note, this code ignores exceptions to keep the code simple.
    *
    * @author <a href="mailto:leif@silveregg.co.jp">Leif Mortenson</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/02/08 12:13:57 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/09 16:08:01 $
    * @since 4.1
    */
   public class Main
  @@ -68,7 +68,7 @@
           // Setup the LogKitManager
           DefaultLogKitManager logManager = new DefaultLogKitManager();
           Logger lmLogger = Hierarchy.getDefaultHierarchy().
  -            getLoggerFor( logKitConfig.getAttribute( "logger", "INFO" ) );
  +            getLoggerFor( logKitConfig.getAttribute( "logger", "lm" ) );
           lmLogger.setPriority( 
               Priority.getPriorityForName( logKitConfig.getAttribute( "log-level", "INFO"
) ) );
           logManager.setLogger( lmLogger );
  @@ -77,13 +77,13 @@
           // Setup the RoleManager
           DefaultRoleManager roleManager = new DefaultRoleManager();
           roleManager.setLogger( 
  -            logManager.getLogger( rolesConfig.getAttribute( "logger", "INFO" ) ) );
  +            logManager.getLogger( rolesConfig.getAttribute( "logger", "rm" ) ) );
           roleManager.configure( rolesConfig );
           
           // Set up the ComponentManager
           ExcaliburComponentManager manager = new ExcaliburComponentManager();
           manager.setLogger( 
  -            logManager.getLogger( componentsConfig.getAttribute( "logger", "INFO" ) ) );
  +            logManager.getLogger( componentsConfig.getAttribute( "logger", "cm" ) ) );
           manager.setLogKitManager( logManager );
           manager.contextualize( context );
           manager.setRoleManager( roleManager );
  
  
  

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


Mime
View raw message