[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch, master, updated. v0.9.18-92-g32d669a
added by portage for gitosis-gentoo
git-noreply at pixie.qos.ch
Thu Mar 18 16:11:41 CET 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Logback: the generic, reliable, fast and flexible logging framework.".
The branch, master has been updated
via 32d669a3ab35c87a919ca47712eaef295360a46e (commit)
from e540ea746cb1cf748343bdd8c3ce3bd364f50ff8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=32d669a3ab35c87a919ca47712eaef295360a46e
http://github.com/ceki/logback/commit/32d669a3ab35c87a919ca47712eaef295360a46e
commit 32d669a3ab35c87a919ca47712eaef295360a46e
Author: Ceki Gulcu <ceki at qos.ch>
Date: Thu Mar 18 16:10:52 2010 +0100
- updated the docs
diff --git a/logback-site/src/site/pages/manual/mdc.html b/logback-site/src/site/pages/manual/mdc.html
index 143b4ff..43e0c1a 100644
--- a/logback-site/src/site/pages/manual/mdc.html
+++ b/logback-site/src/site/pages/manual/mdc.html
@@ -652,15 +652,23 @@ public class UserServletFilter implements Filter {
</tr>
<tr class="alt">
- <td>request.remoteHost</td>
+ <td><code>req.remoteHost</code></td>
<td>as returned by the <a
- href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#getRemoteHost%28%29">getRemoteHost90</a>
+ href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#getRemoteHost%28%29">getRemoteHost()</a>
method
</td>
</tr>
- <tr>
- <td>request.requestURI</td>
+ <tr >
+ <td><code>req.xForwardedFor</code></td>
+ <td>value of the <a
+ href="http://en.wikipedia.org/wiki/X-Forwarded-For">"X-Forwarded-For"</a>
+ header
+ </td>
+ </tr>
+
+ <tr class="alt">
+ <td><code>req.requestURI</code></td>
<td>
as returned by <a
href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html#getRequestURI%28%29">getRequestURI()</a>
@@ -668,8 +676,8 @@ public class UserServletFilter implements Filter {
</td>
</tr>
- <tr class="alt">
- <td>request.userAgent</td>
+ <tr >
+ <td><code>req.userAgent</code></td>
<td>value of the "User-Agent" header
</td>
</tr>
@@ -701,9 +709,16 @@ public class UserServletFilter implements Filter {
<p>Once the filter is installed, values corresponding to each MDC
key will be output by the %X <a
- href="layouts.html#conversionWord">conversion word</a>.
+ href="layouts.html#conversionWord">conversion word</a> acoording to
+ the key passes as first option. For example, to print the remote
+ host followed by the request URI on one line, the date followed by
+ the message on the next, you would set <code>PatternLayout</code>'s
+ pattern to:
+
</p>
+ <p class="source">%X{req.remoteHost} %X{req.requestURI}%n%d - %m%n</p>
+
<script src="../templates/footer.js" type="text/javascript"></script>
</div>
</body>
-----------------------------------------------------------------------
Summary of changes:
logback-site/src/site/pages/manual/mdc.html | 29 ++++++++++++++++++++------
1 files changed, 22 insertions(+), 7 deletions(-)
hooks/post-receive
--
Logback: the generic, reliable, fast and flexible logging framework.
More information about the logback-dev
mailing list