Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-33129

Update log4J to version 1.2.17 (from 1.2.16) and change the PatternLayout to EnhancedPatternLayout

    Details

      Description

      • Upgrade the log4J library to 1.2.17.
      • Update com.liferay.portal.tools.deploy.BaseDeployer to also copy Log4J extras when auto.deploy.copy.log4j=true - this will be needed as the EnhancedPatternLayout is contained in the extras jar.
      • Update the log4J configuration files to make use of org.apache.log4j.EnhancedPatternLayout. The JavaDoc notes the following about the EnhancedPatternLayout:

      This class is an enhanced version of org.apache.log4j.PatternLayout which was originally developed as part of the abandoned log4j 1.3 effort and has been available in the extras companion. This pattern layout should be used in preference to org.apache.log4j.PatternLayout except when compatibility where PatternLayout has been extended either through subclassing or alternative pattern parsers.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: