Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3312

Bridge does not convert properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.1
    • 2.17.2
    • Log4j 1.2 bridge
    • None

    Description

      I have tried to migrate my application from Log4j 1.2.17 to the latest.

      The first problem was that the class FileAppender was not inside the bridge jar.

      I resolved the issue copying the java file from the old version.

      Now I found out the that the properties that are in the log4j.properties are not converted when passed to my custom appeder.
      Like

      log4j.appender.FULL.file            = ${user.home}/${user.name}

      is not expanded to /home/escantam/escantam

      The properties file is found and loaded but the properties no expanded when the setFile method is called.
      Is this a bug?

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scanti81 Enrico Scantamburlo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: