mcconnell 2002/12/16 20:58:05 Modified: assembly/src/java/org/apache/avalon/assembly/logging DefaultLoggingManager.java Log: Improved bootstrap logging messages. Revision Changes Path 1.4 +9 -6 avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/logging/DefaultLoggingManager.java Index: DefaultLoggingManager.java =================================================================== RCS file: /home/cvs/avalon-sandbox/assembly/src/java/org/apache/avalon/assembly/logging/DefaultLoggingManager.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- DefaultLoggingManager.java 11 Dec 2002 04:56:14 -0000 1.3 +++ DefaultLoggingManager.java 17 Dec 2002 04:58:05 -0000 1.4 @@ -187,19 +187,21 @@ m_logHierarchy = new Hierarchy(); getHierarchy().setDefaultLogTarget( DEFAULT_STREAM ); m_targets.put( DEFAULT_TARGET, DEFAULT_STREAM ); + String priority; if( m_descriptor.getPriority() != null ) { - getHierarchy().setDefaultPriority( - Priority.getPriorityForName( m_descriptor.getPriority() ) - ); + priority = m_descriptor.getPriority(); } else { - getHierarchy().setDefaultPriority( - Priority.getPriorityForName( DEFAULT_PRIORITY ) - ); + priority = DEFAULT_PRIORITY; } + getHierarchy().setDefaultPriority( + Priority.getPriorityForName( priority ) + ); + + // // setup the bootstrap logging category // @@ -208,6 +210,7 @@ m_logger = new LogKitLogger( addCategory( bootstrap.getName(), bootstrap.getPriority(), bootstrap.getTarget(), false ) ); + m_logger.info( "setting default priority: " + priority ); // // build targets based on the information contained in the descriptor
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>