public class XMLCocoonLogFormatter implements Formatter(Code)
A refactoring of org.apache.log.format.PatternFormatter
and org.apache.cocoon.util.log.CocoonLogFormatter for
producing XML format.
This formater formats the LogEntries according to given input types. Each
log entry is inside a <log-entry> element and each information is
inside an own element.
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. The class name is embeded by a <class>
element.
thread : outputs the name of the current thread (first element
on the context stack). The thread name is surrounded by a <thread>
element.
uri : outputs the request URI (<uri>).
category : outputs the log category (<category>).
message : outputs the message (<message>).
time : outputs the time (<time>).
rtime : outputs the relative time (<relative-time>).
throwable : outputs the exception (<throwable>).
priority : outputs the priority (<priority>).
host : outputs the request host header (<priority>).