org.apache.sling.extensions.slf4j.mdc-1.0.0
[maven-release-plugin]  copy for tag org.apache.sling.extensions.slf4j.mdc-1.0.0

git-svn-id: https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.extensions.slf4j.mdc-1.0.0@1594791 13f79535-47bb-0310-9956-ffa450edef68
8 files changed
tree: b667e70a23450dd128c0b1b8f3e0f854027f0d5e
  1. README.md
  2. pom.xml
  3. slf4j-mdc/
  4. src/
README.md

Apache Sling MDC Inserting Filter

This filter exposes various request details as part of [MDC][1].

Currently it exposes following variables:

  1. req.remoteHost - Request remote host
  2. req.userAgent - User Agent Header
  3. req.requestURI - Request URI
  4. req.queryString - Query String from request
  5. req.requestURL -
  6. req.xForwardedFor -
  7. sling.userId - UserID associated with the request. Obtained from ResourceResolver
  8. jcr.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.

[1] http://www.slf4j.org/manual.html#mdc