Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1597

Log4jConfigurer fails to locate log4j configuration file if property file format used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.6.1
    • 3.0.1
    • core
    • None

      There is a bug in Log4jConfigurer initLogging method. The PropertyConfigurator.configure(log4jFileName) call should use properties as a parameter.

      else {
      Properties properties = new Properties();
      try

      { properties.load(IOUtils.toInputStream(config)); }

      catch (IOException e)

      { log("Unable to initialize Log4J from [" //$NON-NLS-1$ + log4jFileName + "], got an Exception during reading the properties file " //$NON-NLS-1$ + e.getMessage()); return; }

      PropertyConfigurator.configure(log4jFileName); // FIXME
      }

        Acceptance criteria

              gjoseph Magnolia International
              kzadorozhny Konstantin Zadorozhny
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD