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

It's not possible to use a different log4.properties file on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4.1
    • 5.5.2, 5.6, 6.0.2, 6.1, 7.0
    • None
    • None

    Description

      It's currently not possible to change the location of the log4j.properties file on windows. The value of LOG4J_CONFIG always gets replaced with the default value server\resources\log4j.properties. Thus, this file inside the server directory needs to be changed after every update.

      See attached patch for a fix. Unfortunately, I couldn't figure out why LOG4J_CONFIG was set to empty. I tested manually that logging still works when running an example so I hope that this line is really just obsolete.

      Attachments

        1. SOLR-8676.patch
          1 kB
          Mikhail Khludnev
        2. SOLR-8676.patch
          0.8 kB
          Kristine Jetzke
        3. verifying SOLR-8676.txt
          1 kB
          Mikhail Khludnev

        Activity

          People

            mkhl Mikhail Khludnev
            tinexw Kristine Jetzke
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: