Index: AvalonFormatter.java
===================================================================
RCS file: /home/cvspublic/jakarta-avalon/src/java/org/apache/avalon/framework/logger/AvalonFormatter.java,v
retrieving revision 1.10
diff -r1.10 AvalonFormatter.java
28c28,34
<     private static final int DEFAULT_STACK_DEPTH = 8;
---
>     public static final int DEFAULT_STACK_DEPTH = 8;
> 
>     /**
>      * The constant defining the default behaviour for printing
>      * nested exceptions.
>      */
>     public static final boolean DEFAULT_PRINT_CASCADING = true;
32a39,41
>     //Determines if nested exceptions should be logged
>     private final boolean m_printCascading;
> 
35a45,46
>      *
>      * @param pattern The pattern to use to format the log entries
39c50
<         this( pattern, DEFAULT_STACK_DEPTH );
---
>         this( pattern, DEFAULT_STACK_DEPTH, DEFAULT_PRINT_CASCADING );
44a56,60
>      *
>      * @param pattern The pattern to use to format the log entries
>      * @param stackDepth The depth to which stacktraces are printed out
>      * @param printCascading true enables printing of nested exceptions,
>      *   false only prints out the outermost exception
46c62
<     public AvalonFormatter( final String pattern, final int stackDepth )
---
>     public AvalonFormatter( final String pattern, final int stackDepth, final boolean printCascading )
49a66
>         m_printCascading = printCascading;
62c79
<         return ExceptionUtil.printStackTrace( throwable, m_stackDepth, true );
---
>         return ExceptionUtil.printStackTrace( throwable, m_stackDepth, m_printCascading );

