Keel 2.1RC2

org.apache.log.format
Class AvalonFormatter

java.lang.Object
  extended byorg.apache.log.format.PatternFormatter
      extended byorg.apache.log.format.ExtendedPatternFormatter
          extended byorg.apache.log.format.AvalonFormatter
All Implemented Interfaces:
Formatter, Formatter

Deprecated. Use org.apache.avalon.framework.logger.AvalonFormatter instead of this one.

public class AvalonFormatter
extends ExtendedPatternFormatter

This formatter extends ExtendedPatternFormatter so that CascadingExceptions are formatted with all nested exceptions.

Author:

Nested Class Summary
 
Nested classes inherited from class org.apache.log.format.PatternFormatter
PatternFormatter.PatternRun
 
Field Summary
static boolean DEFAULT_PRINT_CASCADING
          Deprecated. The constant defining the default behaviour for printing nested exceptions.
static int DEFAULT_STACK_DEPTH
          Deprecated. The constant defining the default stack depth when none other is specified.
private  boolean m_printCascading
          Deprecated.  
private  int m_stackDepth
          Deprecated.  
private static int TYPE_CLASS
          Deprecated.  
private static java.lang.String TYPE_CLASS_STR
          Deprecated.  
 
Fields inherited from class org.apache.log.format.ExtendedPatternFormatter
 
Fields inherited from class org.apache.log.format.PatternFormatter
MAX_TYPE
 
Constructor Summary
AvalonFormatter(java.lang.String pattern)
          Deprecated. Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth of 8.
AvalonFormatter(java.lang.String pattern, int stackDepth, boolean printCascading)
          Deprecated. Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth specified.
 
Method Summary
protected  java.lang.String formatPatternRun(LogEvent event, PatternFormatter.PatternRun run)
          Deprecated. Formats a single pattern run (can be extended in subclasses).
private  java.lang.String getClassname()
          Deprecated. Finds the class that has called Logger.
protected  java.lang.String getStackTrace(java.lang.Throwable throwable, java.lang.String format)
          Deprecated. Utility method to format stack trace.
protected  int getTypeIdFor(java.lang.String type)
          Deprecated. Retrieve the type-id for a particular string.
 
Methods inherited from class org.apache.log.format.ExtendedPatternFormatter
 
Methods inherited from class org.apache.log.format.PatternFormatter
format, getCategory, getContext, getContextMap, getContextStack, getMessage, getPriority, getRTime, getThread, getTime, parse, setFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_CLASS

private static final int TYPE_CLASS
Deprecated. 
See Also:
Constant Field Values

TYPE_CLASS_STR

private static final java.lang.String TYPE_CLASS_STR
Deprecated. 
See Also:
Constant Field Values

DEFAULT_STACK_DEPTH

public static final int DEFAULT_STACK_DEPTH
Deprecated. 
The constant defining the default stack depth when none other is specified.

See Also:
Constant Field Values

DEFAULT_PRINT_CASCADING

public static final boolean DEFAULT_PRINT_CASCADING
Deprecated. 
The constant defining the default behaviour for printing nested exceptions.

See Also:
Constant Field Values

m_stackDepth

private final int m_stackDepth
Deprecated. 

m_printCascading

private final boolean m_printCascading
Deprecated. 
Constructor Detail

AvalonFormatter

public AvalonFormatter(java.lang.String pattern)
Deprecated. 
Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth of 8.

Parameters:
pattern - The pattern to use to format the log entries

AvalonFormatter

public AvalonFormatter(java.lang.String pattern,
                       int stackDepth,
                       boolean printCascading)
Deprecated. 
Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth specified.

Parameters:
pattern - The pattern to use to format the log entries
stackDepth - The depth to which stacktraces are printed out
printCascading - true enables printing of nested exceptions, false only prints out the outermost exception
Method Detail

getStackTrace

protected java.lang.String getStackTrace(java.lang.Throwable throwable,
                                         java.lang.String format)
Deprecated. 
Utility method to format stack trace.

Overrides:
getStackTrace in class PatternFormatter
Parameters:
throwable - the throwable instance
format - ancilliary format parameter - allowed to be null
Returns:
the formatted string

getTypeIdFor

protected int getTypeIdFor(java.lang.String type)
Deprecated. 
Retrieve the type-id for a particular string.

Overrides:
getTypeIdFor in class ExtendedPatternFormatter
Parameters:
type - the string
Returns:
the type-id

formatPatternRun

protected java.lang.String formatPatternRun(LogEvent event,
                                            PatternFormatter.PatternRun run)
Deprecated. 
Description copied from class: ExtendedPatternFormatter
Formats a single pattern run (can be extended in subclasses).

Overrides:
formatPatternRun in class ExtendedPatternFormatter
Parameters:
event - the log event
run - the pattern run to format.
Returns:
the formatted result.

getClassname

private java.lang.String getClassname()
Deprecated. 
Finds the class that has called Logger.


Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.