Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » util » log » [javadoc | source]
org.apache.cocoon.util.log
public class: CocoonLogFormatter [javadoc | source]
java.lang.Object
   org.apache.cocoon.util.log.ExtensiblePatternFormatter
      org.apache.cocoon.util.log.CocoonLogFormatter

All Implemented Interfaces:
    org.apache.log.format.Formatter

Deprecated! This - class will be removed in 2.2

An extended pattern formatter. New patterns defined by this class are:
Nested Class Summary:
static class  CocoonLogFormatter.CallStack  Hack to get the call stack as an array of classes. The SecurityManager class provides it as a protected method, so change it to public through a new method ! 
Field Summary
public static final  int DEFAULT_STACK_DEPTH    The constant defining the default stack depth when none other is specified. 
protected static final  int TYPE_CLASS     
protected static final  int TYPE_URI     
protected static final  int TYPE_THREAD     
protected static final  int TYPE_HOST     
protected static final  int TYPE_QUERY     
protected static final  int TYPE_ROOTTHROWABLE     
protected static final  String TYPE_CLASS_STR     
protected static final  String TYPE_CLASS_SHORT_STR     
protected static final  String TYPE_URI_STR     
protected static final  String TYPE_THREAD_STR     
protected static final  String TYPE_HOST_STR     
protected static final  String TYPE_QUERY_STR     
protected static final  String TYPE_ROOTTHROWABLE_STR     
Fields inherited from org.apache.cocoon.util.log.ExtensiblePatternFormatter:
TYPE_TEXT,  TYPE_CATEGORY,  TYPE_MESSAGE,  TYPE_TIME,  TYPE_RELATIVE_TIME,  TYPE_THROWABLE,  TYPE_PRIORITY,  MAX_TYPE,  TYPE_CATEGORY_STR,  TYPE_MESSAGE_STR,  TYPE_TIME_STR,  TYPE_RELATIVE_TIME_STR,  TYPE_THROWABLE_STR,  TYPE_PRIORITY_STR,  m_formatSpecification
Constructor:
 public CocoonLogFormatter() 
 public CocoonLogFormatter(int stackDepth) 
Method from org.apache.cocoon.util.log.CocoonLogFormatter Summary:
formatPatternRun,   getStackTrace,   getTime,   getTypeIdFor
Methods from org.apache.cocoon.util.log.ExtensiblePatternFormatter:
addPatternRun,   addTextRun,   append,   fix,   format,   formatPatternRun,   getCategory,   getMessage,   getPriority,   getStackTrace,   getTime,   getTypeIdFor,   parse,   setFormat
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.util.log.CocoonLogFormatter Detail:
 protected String formatPatternRun(LogEvent event,
    PatternRun run) 
      Deprecated!
 protected String getStackTrace(Throwable throwable,
    String format) 
      Deprecated!
    Utility method to format stack trace so that CascadingExceptions are formatted with all nested exceptions.

    FIXME: copied from AvalonFormatter, to be removed if ExtensiblePatternFormatter replaces PatternFormatter.

 protected String getTime(long time,
    String pattern) 
      Deprecated!
    Utility method to format time.
 protected int getTypeIdFor(String type) 
      Deprecated!