java.lang.Objectorg.apache.cocoon.util.log.ExtensiblePatternFormatter
org.apache.cocoon.util.log.CocoonLogFormatter
All Implemented Interfaces:
org.apache.log.format.Formatter
This - class will be removed in 2.2class: 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 stringthread: 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.< - a href="mailto:sylvain@apache.org">Sylvain Wallez< - a href="mailto:vgritsenko@apache.org">Vadim Gritsenko$ - Id: CocoonLogFormatter.java 433543 2006-08-22 06:22:54Z crossley $| 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 | |
| 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: |
|---|
Deprecated! |
Deprecated!
FIXME: copied from AvalonFormatter, to be removed if ExtensiblePatternFormatter replaces PatternFormatter. |
Deprecated!
|
Deprecated! |