Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1242

Consistent logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • build

    Description

      Logging dependencies are very inconsistent. It seems we have absolute dependencies on log4j, yet use slf4j sometimes, and log4j other times. In some of our tests we have slf4j-nop as a test dependency.

      It seems we could consolidate a lot of this if we simply did:

      1. slf4j-api : compile
      2. slf4j-log4j12 : runtime
      3. slf4j-nop : test
      4. log4j : runtime

      We could do this in the parent POM and get rid of all the different dependencies throughout the code.

      I don't know that we could ever use anything other than slf4j-log4j12 as the implementation (unless our dependencies broke away from using log4j directly also), but at least we'd clean up all the logging dependencies in our code/build, and would be ready to switch to something better if something came along. Further, if somebody wanted to reuse our code, and weren't tied to log4j, because they didn't need our transitive dependencies that locked in log4j, they could easily depend on their own slf4j implementation jar, and all the logging in our code would still work correctly for them without needing to use something like log4j-over-slf4j.

      Attachments

        1. ACCUMULO-1242-2.patch
          6.97 MB
          Ed Coleman
        2. accumulo-slf4j-snapshot.patch
          1.06 MB
          Ed Coleman
        3. dynamicLog.tgz
          1.05 MB
          Ed Coleman

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              etcoleman Ed Coleman
              ctubbsii Christopher Tubbs
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m