Qpid
  1. Qpid
  2. QPID-147

Remove log4j.properties from BAU distribution

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: M2
    • Component/s: None

      Description

      Users have commented that having a log4.properties in the distributed jars is an issue since it can often cause havoc with their own logging. Should ship the log4.properties separately.

      1. Qpid-147.diff
        0.4 kB
        Rupert Smith

        Activity

        Hide
        Robert Greig added a comment -

        Committed svn revision 494800

        Show
        Robert Greig added a comment - Committed svn revision 494800
        Hide
        Rupert Smith added a comment -

        Yes, because on start up log4j loads log4j.properties by default. Even though the XMLDomConfigurator is called with a log4j.xml file that it appears to process, it does not replace the config already loaded from the .properties file.

        I think, in general all log4j.properties files should be ditched and use xml configs instead to help avoid this sort of problem.

        Here's a patch for the maven build to exclude the log4j.properties from the distribution jars.

        Show
        Rupert Smith added a comment - Yes, because on start up log4j loads log4j.properties by default. Even though the XMLDomConfigurator is called with a log4j.xml file that it appears to process, it does not replace the config already loaded from the .properties file. I think, in general all log4j.properties files should be ditched and use xml configs instead to help avoid this sort of problem. Here's a patch for the maven build to exclude the log4j.properties from the distribution jars.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marnie McCormack
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development