| java.lang.Object | |
| ↳ | com.atlassian.jira.util.log.Log4jKit |
A class to help with log4j related code
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | MDC_JIRA_ASSESSION_ID | ||||||||||
| String | MDC_JIRA_REQUEST_ID | ||||||||||
| String | MDC_JIRA_REQUEST_IPADDR | ||||||||||
| String | MDC_JIRA_REQUEST_URL | ||||||||||
| String | MDC_JIRA_USERNAME | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This will clear out all the values in the log4j org.apache.log4j.MDC.
| |||||||||||
Returns the full log file name for the given appender.
| |||||||||||
This will set the Atlassian Session Id into the log4j org.apache.log4j.MDC
| |||||||||||
This squirels away request information into the log4j org.apache.log4j.MDC.
| |||||||||||
This will add the user name to the log4j org.apache.log4j.MDC
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This will clear out all the values in the log4j org.apache.log4j.MDC. This should be done in a finally block perhaps on the outer edge of a request and probably in the start of the request as well.
Returns the full log file name for the given appender. The appender must be a FileAppender for this to work.
| appenderName | the name of the appender in the log4j configuration |
|---|
This will set the Atlassian Session Id into the log4j org.apache.log4j.MDC
| atlassianSessionId | the session id in play |
|---|
This squirels away request information into the log4j org.apache.log4j.MDC.
| userName | the user name in play |
|---|---|
| requestId | the request id |
| asessionId | the Atlassian Session ID (hash of session id) |
| requestURL | the request URL |
| ipAddr | the ipaddress of the clint making the request |
This will add the user name to the log4j org.apache.log4j.MDC
| userName | the user name in play |
|---|