Legacy Knowledge Base
Published Jun. 30, 2025

ActiveFileName is not recognized in DXP 7.4

Written By

Dia Seung

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • ActiveFileName attribute is not recognized when migrating a custom portal-log4j-ext.xml from DXP 7.2 to DXP 7.4.

Environment

  • DXP 7.4

Resolution

  • DXP 7.4 uses Log4j 2 whereas DXP 7.2 uses Log4j 1.  While DXP 7.4 has a compatibility layer that allows Log4j 1 configurations to still be usable, this compatibility layer does not have handling for ActiveFileName.
  • It would be recommended to migrate the Log4j 1 configuration to new Log4j 2 configuration format.
  • The Log4j 2 equivalent for ActiveFileName attribute would be the FileName attribute for RollingFileAppender
  • Please feel free to refer to the following Log4j 2 sample below:
    POC: portal-log4j-ext.xml
    <?xml version="1.0"?>
    
    <Configuration strict="true">
    	<Appenders>
    		<Appender fileName="@liferay.home@/tomcat-9.0.71/logs/authutil.log" filePattern="@liferay.home@/tomcat-9.0.71/logs/authutil.log.%d{yyyy-MM-dd-HH}" name="AUTHUTILAPPR" type="RollingFile">
    			<Layout pattern="[%t] %d{DATE} %5p %C{1}:%L - %m%n" type="PatternLayout" />
    
    			<TimeBasedTriggeringPolicy />
    		</Appender>
    	</Appenders>
    
    	<Loggers>
    		<Logger name="AUTHUTIL" level="ALL">
    	      <AppenderRef ref="AUTHUTILAPPR"/>
    	    </Logger>
    	</Loggers>
    </Configuration>

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base