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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1, 3.1.0
    • java client, server
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: