| java.lang.Object org.apache.cocoon.util.log.ExtensiblePatternFormatter org.apache.cocoon.util.log.CocoonLogFormatter
CocoonLogFormatter | public class CocoonLogFormatter extends ExtensiblePatternFormatter (Code) | | An extended pattern formatter. New patterns defined by this class are:
class : Outputs the name of the class that has logged the
message. The optional short subformat removes the
package name. Warning: This pattern works only if formatting occurs in
the same thread as the call to Logger, i.e. it won't work with
AsyncLogTarget .
uri : Outputs the request URI.
query : Outputs the request query string
thread : Outputs the name of the current thread (first element
on the context stack).
host : Outputs the request host header.-
rootThrowable : Outputs the root throwable message and
stacktrace.-
author: Sylvain Wallez author: Vadim Gritsenko version: $Id: CocoonLogFormatter.java 433543 2006-08-22 06:22:54Z crossley $ |
DEFAULT_STACK_DEPTH | final public static int DEFAULT_STACK_DEPTH(Code) | | The constant defining the default stack depth when
none other is specified.
|
TYPE_CLASS | final protected static int TYPE_CLASS(Code) | | |
TYPE_CLASS_SHORT_STR | final protected static String TYPE_CLASS_SHORT_STR(Code) | | |
TYPE_CLASS_STR | final protected static String TYPE_CLASS_STR(Code) | | |
TYPE_HOST | final protected static int TYPE_HOST(Code) | | |
TYPE_HOST_STR | final protected static String TYPE_HOST_STR(Code) | | |
TYPE_QUERY | final protected static int TYPE_QUERY(Code) | | |
TYPE_QUERY_STR | final protected static String TYPE_QUERY_STR(Code) | | |
TYPE_ROOTTHROWABLE | final protected static int TYPE_ROOTTHROWABLE(Code) | | |
TYPE_ROOTTHROWABLE_STR | final protected static String TYPE_ROOTTHROWABLE_STR(Code) | | |
TYPE_THREAD | final protected static int TYPE_THREAD(Code) | | |
TYPE_THREAD_STR | final protected static String TYPE_THREAD_STR(Code) | | |
TYPE_URI | final protected static int TYPE_URI(Code) | | |
TYPE_URI_STR | final protected static String TYPE_URI_STR(Code) | | |
CocoonLogFormatter | public CocoonLogFormatter()(Code) | | The depth to which stacktraces are printed out
|
CocoonLogFormatter | public CocoonLogFormatter(int stackDepth)(Code) | | |
formatPatternRun | protected String formatPatternRun(LogEvent event, PatternRun run)(Code) | | |
getStackTrace | protected String getStackTrace(Throwable throwable, String format)(Code) | | 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.
Parameters: throwable - the throwable instance Parameters: format - ancilliary format parameter - allowed to be null the formatted string |
getTime | protected String getTime(long time, String pattern)(Code) | | Utility method to format time.
Parameters: time - the time Parameters: pattern - ancilliary pattern parameter - allowed to be null the formatted string |
Methods inherited from org.apache.cocoon.util.log.ExtensiblePatternFormatter | protected int addPatternRun(Stack stack, char pattern, int index)(Code)(Java Doc) protected int addTextRun(Stack stack, char pattern, int index)(Code)(Java Doc) protected void append(StringBuffer sb, int minSize, int maxSize, boolean rightJustify, String output)(Code)(Java Doc) final protected String fix(String context)(Code)(Java Doc) public String format(LogEvent event)(Code)(Java Doc) protected String formatPatternRun(LogEvent event, PatternRun run)(Code)(Java Doc) protected String getCategory(String category, String format)(Code)(Java Doc) protected String getMessage(String message, String format)(Code)(Java Doc) protected String getPriority(Priority priority, String format)(Code)(Java Doc) protected String getStackTrace(Throwable throwable, String format)(Code)(Java Doc) protected String getTime(long time, String format)(Code)(Java Doc) protected int getTypeIdFor(String type)(Code)(Java Doc) protected void parse(String patternString)(Code)(Java Doc) public void setFormat(String format)(Code)(Java Doc)
|
|
|