<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>What is the purpose of log4j.properties file, in Liferay 7.4?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121361652" />
  <subtitle>What is the purpose of log4j.properties file, in Liferay 7.4?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121361652</id>
  <updated>2026-04-04T05:31:22Z</updated>
  <dc:date>2026-04-04T05:31:22Z</dc:date>
  <entry>
    <title>RE: What is the purpose of log4j.properties file, in Liferay 7.4?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121370925" />
    <author>
      <name>txapeldot .</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121370925</id>
    <updated>2022-03-02T20:15:00Z</updated>
    <published>2022-03-02T20:14:59Z</published>
    <summary type="html">&lt;p&gt;All the replies at once, no please...&lt;/p&gt;
&lt;p&gt;It's so frustrating seeing that the Community supposed to help users
  is so silent...&lt;/p&gt;</summary>
    <dc:creator>txapeldot .</dc:creator>
    <dc:date>2022-03-02T20:14:59Z</dc:date>
  </entry>
  <entry>
    <title>What is the purpose of log4j.properties file, in Liferay 7.4?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121361651" />
    <author>
      <name>txapeldot .</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121361651</id>
    <updated>2022-02-15T08:35:22Z</updated>
    <published>2022-02-14T14:59:58Z</published>
    <summary type="html">&lt;p&gt;Hi all:&lt;/p&gt;
&lt;p&gt;In Liferay 6.2, when a portlet project plugin was created, it was
  given a log4j.properties file you could overwrite to customize your
  log traces. Nowadays, in Liferay 7.4, when a Liferay module project is
  created, two log related log4j properties files can be found within
  that module:&lt;/p&gt;
&lt;p&gt;1) /src/main/resources/log4j.properties&lt;/p&gt;
&lt;p&gt;2) /src/main/webapp/META-INF/module-log4j-ext.xml&lt;/p&gt;
&lt;p&gt;According to the official Liferay documentation (&lt;a
    href="https://help.liferay.com/hc/es/articles/360017883572-Adjusting-Module-Logging"&gt;Adjusting
    Module Logging&lt;/a&gt;), you have to set up module-log4j-ext.xml file.
  My question is, firstly, what the log4j.properties file is intended
  for; and secondly, weather it is possible or not keeping on using
  log4j.properties file to customize the log traces as it used to be for
  Liferay 6.2.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>txapeldot .</dc:creator>
    <dc:date>2022-02-14T14:59:58Z</dc:date>
  </entry>
</feed>
