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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.5.2, 5.6, 6.0.2, 6.1, 7.0
    • Component/s: None
    • Labels:
      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. verifying SOLR-8676.txt
          1 kB
          Mikhail Khludnev
        2. SOLR-8676.patch
          1 kB
          Mikhail Khludnev
        3. SOLR-8676.patch
          0.8 kB
          Kristine Jetzke

          Activity

            People

            • Assignee:
              mkhludnev Mikhail Khludnev
              Reporter:
              tinexw Kristine Jetzke
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: