Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3706

Ship setup to log with log4j.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.3, 6.0
    • None
    • None

    Description

      Currently we default to java util logging and it's terrible in my opinion.

      *It's simple built in logger is a 2 line logger.
      *You have to jump through hoops to use your own custom formatter with jetty - either putting your class in the start.jar or other pain in the butt solutions.
      *It can't roll files by date out of the box.

      I'm sure there are more issues, but those are the ones annoying me now. We should switch to log4j - it's much nicer and it's easy to get a nice single line format and roll by date, etc.

      If someone wants to use JUL they still can - but at least users could start with something decent.

      Attachments

        1. SOLR-3706-maven.patch
          5 kB
          Steven Rowe
        2. SOLR-3706-maven.patch
          4 kB
          Ryan McKinley
        3. SOLR-3706.patch
          24 kB
          Mark Miller
        4. SOLR-3706-solr-log4j.patch
          18 kB
          Ryan McKinley
        5. SOLR-3706-solr-log4j.patch
          15 kB
          Ryan McKinley

        Issue Links

          Activity

            People

              markrmiller@gmail.com Mark Miller
              markrmiller@gmail.com Mark Miller
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: