<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Separate log file for each AMP and not in alfresco.log in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42515#M17714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below setting in my &lt;STRONG&gt;AMP'&lt;/STRONG&gt;s &lt;STRONG&gt;log4j.properties&lt;/STRONG&gt; file. The below setting works fine and creates a separate log file named &lt;STRONG&gt;amp_abc.log&lt;/STRONG&gt;.&amp;nbsp; The only problem is the &lt;STRONG&gt;AMP&lt;/STRONG&gt; specific log goes to both the files &lt;STRONG&gt;alfresco.log&lt;/STRONG&gt; and &lt;STRONG&gt;amp_abc.log&lt;/STRONG&gt; file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way so that the logs goes only to the &lt;STRONG&gt;AMP&lt;/STRONG&gt; specific log file and not in &lt;STRONG&gt;alfresco.log&lt;/STRONG&gt; too.&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appender&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;moduleLog&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DailyRollingFileAppender&lt;BR /&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appender&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;moduleLog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;File&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;amp_abc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;log&lt;BR /&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appender&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;moduleLog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layout&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PatternLayout&lt;BR /&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appender&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;moduleLog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layout&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ConversionPattern&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;d&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;yyyy&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;MM&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;dd&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;d&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;ABSOLUTE&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;5p &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;c&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;m&lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt;n&lt;BR /&gt;&lt;BR /&gt;log4j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;logger&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;abc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;component&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;debug&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;moduleLog&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 18:09:11 GMT</pubDate>
    <dc:creator>signjoy</dc:creator>
    <dc:date>2018-04-05T18:09:11Z</dc:date>
    <item>
      <title>Separate log file for each AMP and not in alfresco.log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42515#M17714</link>
      <description>Hi,I have below setting in my AMP's log4j.properties file. The below setting works fine and creates a separate log file named amp_abc.log.&amp;nbsp; The only problem is the AMP specific log goes to both the files alfresco.log and amp_abc.log file.Is there any way so that the logs goes only to the AMP specifi</description>
      <pubDate>Thu, 05 Apr 2018 18:09:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42515#M17714</guid>
      <dc:creator>signjoy</dc:creator>
      <dc:date>2018-04-05T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Separate log file for each AMP and not in alfresco.log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42516#M17715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to configure the "&lt;A href="https://veerasundar.com/blog/2009/08/log4j-tutorial-additivity-what-and-why/" rel="nofollow noopener noreferrer"&gt;additivity&lt;/A&gt;" of your logger to false to no longer make it propagate logging events to inherited&amp;nbsp;appenders (the alfresco.log is an appender inherited from the root).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 07:04:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42516#M17715</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-04-06T07:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Separate log file for each AMP and not in alfresco.log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42517#M17716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply &lt;B&gt;Axel Faust&lt;/B&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below line in my AMP log4j.properties file but it is still putting logs in parent log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log4j.additivity.moduleLog=false&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 12:48:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42517#M17716</guid>
      <dc:creator>signjoy</dc:creator>
      <dc:date>2018-04-06T12:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Separate log file for each AMP and not in alfresco.log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42518#M17717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not define the additivity for the appender, you have to define it for the logger package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log4j.additivity.com.abc.component=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, every logger in the com.abc.component package will only log to the appender you specified (moduleLog) and not propagate further up...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:14:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42518#M17717</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-04-06T13:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Separate log file for each AMP and not in alfresco.log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42519#M17718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! That worked!&lt;/P&gt;&lt;P&gt;Thanks for your time and help...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:10:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/separate-log-file-for-each-amp-and-not-in-alfresco-log/m-p/42519#M17718</guid>
      <dc:creator>signjoy</dc:creator>
      <dc:date>2018-04-06T14:10:37Z</dc:date>
    </item>
  </channel>
</rss>

