Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-2222

Investigate moving to log4j2 for logging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Via slf4j.

      Some bits to keep in mind

      • We have explicit code which rotates logs using direct log4j12 APIs. This should keep working. I believe the log4j2 APIs are different here
      • API compatibility between log4j12 / log4j2 can be problematic - if both end up on the classpath (I believe the APIs are different)
      • Hadoop dist includes a slf4j-log4j12 binding. Changing the default can result in sl4j-log4j12 and slf4j-log4j2 to co-exist by default - which could be problematic. Needs investigation.

      End of the day, we will likely need an option to use either of the two.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sseth Siddharth Seth
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: