commit | ba9dc0f9c75e94767e9fac287eba964abee70d3d | [log] [tgz] |
---|---|---|
author | Chetan Mehrotra <chetanm@apache.org> | Thu May 15 06:54:29 2014 +0000 |
committer | Chetan Mehrotra <chetanm@apache.org> | Thu May 15 06:54:29 2014 +0000 |
tree | 30d117195cb389344540b3d2485f4611284072b4 | |
parent | e48b3964fea4d2a08a89f0e6768cfa5dfeef60d9 [diff] |
SLING-3048 - Filter to populate SLF4J MDC with request details Creating a default config such that filter gets configured in test git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1594789 13f79535-47bb-0310-9956-ffa450edef68
This filter exposes various request details as part of [MDC][1].
Currently it exposes following variables:
req.remoteHost
- Request remote hostreq.userAgent
- User Agent Headerreq.requestURI
- Request URIreq.queryString
- Query String from requestreq.requestURL
-req.xForwardedFor
-sling.userId
- UserID associated with the request. Obtained from ResourceResolverjcr.sessionId
- Session ID of the JCR Session associated with current request.The filter also allow configuration to extract data from request cookie, header and parameters. Look for configuration with name ‘Apache Sling Logging MDC Inserting Filter’ for details on specifying header, cookie, param names.