You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Rohini Palaniswamy (JIRA)" <ji...@apache.org> on 2013/03/06 19:56:14 UTC

[jira] [Created] (OOZIE-1254) Use NDC or MDC for logging

Rohini Palaniswamy created OOZIE-1254:
-----------------------------------------

             Summary: 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