File(s): conf/logback.xml
Format: Logback
Table of Contents |
---|
...
Logback supports a feature known as the Mapped Diagnostic Context (MDC). Information stored in the MDC is available to every logging message (after the point the information is stored) and can be accessed in an event string with the format %mdc{KEY
}. Currently the IdP makes the following information available via the MDC:
There are properties defined to provide some additional control over how this feature works:
idp.logging.MDC.enabled
Can be set to false to turn off the Java filter that populates the MDC if not used.
idp.logging.MDC.createSession
Can be set to false to prevent the Java filter from actually creating a servlet session in accessing the session ID, if it doesn’t already exist. Note that almost all uses of the IdP end up creating that session anyway.
MDC KEY | Description |
---|---|
idp.jsessionid | The servlet container's JSESSIONID attribute |
idp.remote_addr | The IP address of the remote user-agent. This is the user's browser for front-channel requests and the SP for back-channel requests. |
idp.server_hostname | The host name of the server to which the current request was sent |
idp.server_port | The port number to which the current request was sent |
...