<?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>Liferay DXP JSF portlet logging in custom file and location</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119582344" />
  <subtitle>Liferay DXP JSF portlet logging in custom file and location</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119582344</id>
  <updated>2026-04-04T16:03:46Z</updated>
  <dc:date>2026-04-04T16:03:46Z</dc:date>
  <entry>
    <title>RE: Liferay DXP JSF portlet logging in custom file and location</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119587643" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119587643</id>
    <updated>2020-07-13T14:45:34Z</updated>
    <published>2020-07-13T14:45:34Z</published>
    <summary type="html">Hi Gunnar,&lt;br /&gt;Thanks for posting the question. I provided an answer at stackoverflow. Let&amp;#39;s continue the discussion there.&lt;br /&gt;Kind Regards,&lt;br /&gt;Neil</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2020-07-13T14:45:34Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP JSF portlet logging in custom file and location</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119582343" />
    <author>
      <name>Gunnar Brinkmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119582343</id>
    <updated>2020-07-13T07:23:37Z</updated>
    <published>2020-07-13T07:23:37Z</published>
    <summary type="html">Hello,&lt;br /&gt;The JSF portlet&amp;#39;s class is the GenericFacesPortlet (which means not the MVCPortlet) and slf4j is used. I tried the resources/META-INF/portlet-log4j.xml (with dtd), but I cannot achieve logging in custom file and location.&lt;br /&gt;&lt;br /&gt;Any hints would be appreciated, for example a running example using the GenericFacesPortlet, too. Liferay patch level is 7.1.10.fp14.&lt;br /&gt;&lt;br /&gt;I&amp;#39;d like to log for for one category (custom AuditLog class in a component, using slf4j and used by multiple portlets) in for example liferay/logs/auditlog oder liferay/tomcat/logs/auditlog.&lt;br /&gt;The portlets are registered and known in osgi (the component is just a jar dependency a.t.m.).&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;gun&lt;br /&gt;&lt;br /&gt;crossposting &lt;a href="https://stackoverflow.com/questions/62870899/liferay-dxp-jsf-portlet-logging-in-custom-file-and-location"&gt;https://stackoverflow.com/questions/62870899/liferay-dxp-jsf-portlet-logging-in-custom-file-and-location&lt;/a&gt;</summary>
    <dc:creator>Gunnar Brinkmann</dc:creator>
    <dc:date>2020-07-13T07:23:37Z</dc:date>
  </entry>
</feed>
