Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-223

default log4j root logger configuration has neg perf impact with no benefit, change default level to INFO

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1, 3.1.0
    • Component/s: java client, server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The default log4j.properties has:

      log4j.rootLogger=DEBUG, CONSOLE

      where the console appender is only outputting INFO level and above.

      This is resulting in a large number of debug logs being generated, which are all filtered out by the console appender (by default there are no other appenders used)

      We need to change the default rootLogger to INFO level, which will resolve this issue.

      Users are free to change this of course – most likely they would only do this when debugging an issue, and would not want to run in DEBUG in production (again, they are free to choose).

        Attachments

        1. ZOOKEEPER-223.patch
          0.4 kB
          Patrick D. Hunt

          Activity

            People

            • Assignee:
              phunt Patrick D. Hunt
              Reporter:
              phunt Patrick D. Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: