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

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.

Activity

Show:

EdGApril 16, 2013 at 8:46 AM

Hello everyone! We are in the process of removing component "Third Party Libraries" from LPS. Please make the necessary adjustments to your filters. Thanks!

Graeme SteynMarch 25, 2013 at 3:04 AM

Created new pull request to Jorge Ferrer for the 6.2.x version of the fix.

https://github.com/JorgeFerrer/liferay-portal/pull/147

Graeme SteynMarch 13, 2013 at 11:29 PM

Related to http://issues.liferay.com/browse/LPS-9376 where auto.deploy.copy.log4j=true was introduced.

Graeme SteynFebruary 20, 2013 at 3:04 AM

Code changes for this enhancement have been included in the two commit requests.

Completed

Details

Assignee

Reporter

Git Pull Request

Components

None

None

Priority

Zendesk Support

Created February 20, 2013 at 1:30 AM
Updated June 26, 2023 at 5:54 AM
Resolved April 9, 2013 at 5:20 PM
Loading...