<?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 Customizing Log in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/customizing-log/m-p/70533#M23137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanto to customize the logs in Alfresco (alfresco.log, share.log and solr.log) so I have created three new files in &lt;STRONG style="font-size: 11.0pt;"&gt;$TOMCAT_HOME\tomcat\shared\classes\alfresco\extension\:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG style="font-size: 11.0pt;"&gt;custom-log4j.properties&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="font-size: 11.0pt;"&gt;share-log4j.properties&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="font-size: 11.0pt;"&gt;solr-log4j.properties&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And I have modified the line &lt;STRONG&gt;log4j.appender.File.File=XXXX.log&lt;/STRONG&gt; in both of them to change the location of the log files.&lt;/P&gt;&lt;P&gt;However, although the new files have been created in the new location, Alfresco continues witting in the original log files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I change in order to write in the new log files, and not in the original logs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 07:01:31 GMT</pubDate>
    <dc:creator>antonio_sanchez</dc:creator>
    <dc:date>2018-09-04T07:01:31Z</dc:date>
    <item>
      <title>Customizing Log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-log/m-p/70533#M23137</link>
      <description>I wanto to customize the logs in Alfresco (alfresco.log, share.log and solr.log) so I have created three new files in $TOMCAT_HOME\tomcat\shared\classes\alfresco\extension\:custom-log4j.propertiesshare-log4j.propertiessolr-log4j.propertiesAnd I have modified the line log4j.appender.File.File=XXXX.lo</description>
      <pubDate>Tue, 04 Sep 2018 07:01:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-log/m-p/70533#M23137</guid>
      <dc:creator>antonio_sanchez</dc:creator>
      <dc:date>2018-09-04T07:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-log/m-p/70534#M23138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you put that line in one of the files you have mentioned, you are actually NOT modifying / overriding the original definition, but are defining a new appender in the scope of that configuration file. For that appender to be used, you need to overide / reconfigure the root logger to actually use it in the same file. You also need to copy all other configurations concerning the "File" appender, since - again - you are not modifying the original definition but creating a new one, which needs to be complete to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly: Out-of-the-box, there is no support for a share-log4j.properties configuration in the extension directory. There is actually no support for overridable / customizable logging in Share at all. This is why I have implemented &lt;A href="https://github.com/Acosix/alfresco-utility#share-tier" rel="nofollow noopener noreferrer"&gt;this feature in one of my addons&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:19:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-log/m-p/70534#M23138</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-09-04T08:19:06Z</dc:date>
    </item>
  </channel>
</rss>

