You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/01/26 23:00:40 UTC
cvs commit: jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory FormatterFactory.java
donaldp 02/01/26 14:00:40
Modified: src/java/org/apache/avalon/excalibur/logger/factory
FormatterFactory.java
Log:
Made cascading and stack depth configurable options of AvalonFormatter formatter.
Submitted By: Jeremias Maerki <je...@outline.ch>
Revision Changes Path
1.3 +3 -1 jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/logger/factory/FormatterFactory.java
Index: FormatterFactory.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/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 19 Dec 2001 23:04:40 -0000 1.2
+++ FormatterFactory.java 26 Jan 2002 22:00:40 -0000 1.3
@@ -34,7 +34,9 @@
if( "avalon".equals( type ) )
{
- return new AvalonFormatter( format );
+ int depth = conf.getAttributeAsInteger( "depth", AvalonFormatter.DEFAULT_STACK_DEPTH );
+ boolean printCascading = conf.getAttributeAsBoolean( "cascading", AvalonFormatter.DEFAULT_PRINT_CASCADING );
+ return new AvalonFormatter( format, depth, printCascading );
}
if( "extended".equals( type ) )
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>