Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7466 Hadoop Log improvement Umbrella
  3. HADOOP-6807

Log directly from jetty to commons logging, bypassing SLF4J

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.21.0
    • None
    • io
    • None

    Description

      Jetty may default to logging through SLF4J, but don't actually need it; you can provide your own logger which goes straight to commons-logging, I've done something similar in the past:

      [http://smartfrog.svn.sourceforge.net/viewvc/smartfrog/trunk/core/components/jetty/src/org/smartfrog/services/jetty/log/]

      You just need to point jetty at the relevant logger by setting up the relevant JVM property, such as -Dorg.mortbay.log.class=org.smartfrog.services.jetty.log.JettyLogger. Doing something similar in Avro/Hadoop-common would eliminate SLF4J from the dependency graph, route via commons-logging and then, usually, to Log4J, so having only one log to manage. All JVM startup scripts would need to set the relevant property, it is harmless on JVMs that don't start up Jetty6+

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: