[
https://issues.apache.org/jira/browse/OOZIE-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13677423#comment-13677423
]
Mona Chitnis commented on OOZIE-1254:
-------------------------------------
https://github.com/yahoo/oozie/issues/318
> Use NDC or MDC for logging
> --------------------------
>
> Key: OOZIE-1254
> URL: https://issues.apache.org/jira/browse/OOZIE-1254
> Project: Oozie
> Issue Type: Improvement
> Reporter: Rohini Palaniswamy
>
> Because of the XLog prefix design to log USER[-] GROUP[-] TOKEN[-] APP[-]
> JOB[-] ACTION[-], issues like OOZIE-1251 crop up when some one declares XLog
> unintentionally as a static class variable. Even if non-static variable, it
> might have issues if multiple threads access the same object. Also it is
> inefficient as we have to create a XLog object for each instance instead of
> making it static.
> NDC and MDC in log4j have been designed for this specific purpose. We
> should be using one of them.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira