leif        2002/08/06 20:28:48

  Modified:    fortress/src/java/org/apache/excalibur/fortress/util
                        ContextManager.java
  Log:
  Reduce unwanted unconfigurable debug output.  But do it in such a way that
  messages of level info and above will still be displayed should they occur.
  
  Revision  Changes    Path
  1.32      +10 -3     
jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/util/ContextManager.java
  
  Index: ContextManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/util/ContextManager.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- ContextManager.java       7 Aug 2002 03:15:36 -0000       1.31
  +++ ContextManager.java       7 Aug 2002 03:28:48 -0000       1.32
  @@ -190,7 +190,14 @@
           this.containerManagerContext = new OverridableContext( childContext 
);
           this.logger = logger;
   
  -        this.primordialLogger = new ConsoleLogger();
  +        // The primordial logger is used for all output up until the point 
where
  +        //  the logger manager has been initialized.  However it is set into
  +        //  two objects used to load the configuration resource files within
  +        //  the ContextManager.  Any problems loading these files will 
result in
  +        //  warning or error messages.  However in most cases, the debug
  +        //  information should not be displayed, so turn it off by default.
  +        //  Unfortunately, there is not a very good place to make this 
settable.
  +        this.primordialLogger = new ConsoleLogger( ConsoleLogger.LEVEL_INFO 
);
       }
   
       /**
  @@ -738,7 +745,7 @@
   
           if( this.logger == null )
           {
  -            getLogger().info( "Switching to default Logger provided by 
LoggerManager." );
  +            getLogger().debug( "Switching to default Logger provided by 
LoggerManager." );
   
               LoggerManager loggerManager = (LoggerManager)childContext.get( 
LOGGER_MANAGER );
               this.logger = loggerManager.getDefaultLogger();
  
  
  

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

Reply via email to