bloritsch 2003/02/03 11:11:07
Modified: logger/src/java/org/apache/avalon/excalibur/logger/factory
FormatterFactory.java
Log:
add patch from Sash Chatterjee to support any wrapper class
Revision Changes Path
1.3 +7 -1
jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/FormatterFactory.java
Index: FormatterFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/logger/src/java/org/apache/avalon/excalibur/logger/factory/FormatterFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FormatterFactory.java 7 Aug 2002 13:37:00 -0000 1.2
+++ FormatterFactory.java 3 Feb 2003 19:11:07 -0000 1.3
@@ -82,7 +82,13 @@
if( "extended".equals( type ) )
{
- return new ExtendedPatternFormatter( format );
+ /*Normally ExtendPatternFormatter would look for callers
+ *of Logger.class. But when Excalibur Logger provides a
+ *facade, the user class/method is actually one-level deeper.
+ *We therefore create the pattern-formatter with an
+ *additional depth-offset of 1.
+ */
+ return new ExtendedPatternFormatter( format, 1 );
}
if( "raw".equals( type ) )
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]