* <li><code>sc-status</code>: The status code</li>
* <li><code>time</code>: Time the request was served</li>
* <li><code>time-taken</code>: Time (in seconds) taken to serve the request</li>
+ * <li><code>x-threadname</code>: Current request thread name (can compare later with stacktraces)</li>
* <li><code>x-A(XXX)</code>: Pull XXX attribute from the servlet context </li>
* <li><code>x-C(XXX)</code>: Pull the first cookie of the name XXX </li>
* <li><code>x-O(XXX)</code>: Pull the all response header values XXX </li>
return null;
}
String token = tokenizer.getToken();
+ if ("threadname".equals(token)) {
+ return new ThreadNameElement();
+ }
+
if (!tokenizer.hasParameter()) {
log.error("x param in wrong format. Needs to be 'x-#(...)' read the docs!");
return null;
<others/> tag when using absolute ordering. (markt)
</fix>
<add>
- Move the SetCharacaterEncoding filter from the examples web application
+ Move the SetCharacterEncoding filter from the examples web application
to the <code>org.apache.catalina.filters</code> package so it is
available for all web applications. (markt)
</add>
<bug>51555</bug>: Allow destroy() to be called on Lifecycle components
that are in the initialized state. (markt)
</fix>
+ <add>
+ Add x-threadname pattern format token to ExtendedAccessLogValve to log
+ the current request thread name. Based on a patch from Felix Schumacher.
+ (timw)
+ </add>
</changelog>
</subsection>
<subsection name="Coyote">
<li><b>%v</b> - Local server name</li>
<li><b>%D</b> - Time taken to process the request, in millis</li>
<li><b>%T</b> - Time taken to process the request, in seconds</li>
- <li><b>%I</b> - current request thread name (can compare later with stacktraces)</li>
+ <li><b>%I</b> - Current request thread name (can compare later with stacktraces)</li>
</ul>
<p>
<li><b>sc-status</b> - HTTP status code of the response</li>
<li><b>time</b> - Time the request was served in HH:mm:ss format for GMT</li>
<li><b>time-taken</b> - Time (in seconds as floating point) taken to serve the request</li>
+ <li><b>x-threadname</b> - Current request thread name (can compare later with stacktraces)</li>
</ul>
<p>For any of the <code>x-H(XXX)</code> the following method will be called from the