<?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 Re: Overrule Alfresco's log4j.properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158368#M112481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I put a &lt;/SPAN&gt;&lt;EM&gt;dev-log4j.properties&lt;/EM&gt;&lt;SPAN&gt; in&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;$TOMCAT_HOME/shared/classes/alfresco/extension&lt;/EM&gt;&lt;SPAN&gt;/ , but the &lt;/SPAN&gt;&lt;EM&gt;WEB-INF/classes/log4j/properties&lt;/EM&gt;&lt;SPAN&gt; is still used by the application. What should I check in a 2.9b CE to have the &lt;/SPAN&gt;&lt;EM&gt;dev-log4j.properties&lt;/EM&gt;&lt;SPAN&gt; taken into account?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gilles&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2008 17:16:25 GMT</pubDate>
    <dc:creator>gilles</dc:creator>
    <dc:date>2008-08-29T17:16:25Z</dc:date>
    <item>
      <title>Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158362#M112475</link>
      <description>It seems like whatever i try, the log4j.properties in de WEB-INF/classes directory is taking precedence above my log4j.properties in my [tomcat_home]/shared/classes directory. I would like to be able to manage logging properties without being suprised that everything jumps to default when i install</description>
      <pubDate>Thu, 27 Mar 2008 21:20:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158362#M112475</guid>
      <dc:creator>kbonnet</dc:creator>
      <dc:date>2008-03-27T21:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158363#M112476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately because of the way Log4J loads its own properties file, the standard Alfresco override mechanism doesn't work for those files.&amp;nbsp; In 2.2 this has been addressed (see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#log4j.properties" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#log4j.properties&lt;/A&gt;&lt;SPAN&gt;) and in earlier versions the code attached to &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1744" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1744&lt;/A&gt;&lt;SPAN&gt; can be used (albeit it's a lot less sophisticated as a solution than the 2.2 code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 21:55:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158363#M112476</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-03-27T21:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158364#M112477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your prompt reply. My main problem is not the switching back to the default log levels. I could live with that, especially now i've read about the *-log4j.properties, introduced in version 2.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For me, the most annoying is the fact that the alfresco.log file is specified without a further path. On my system (Ubuntu 7.04/Tomcat 5.5) this has the effect that Tomcat is trying to create an alfresco.log file in the directory i'm currently in when restarting. If the tomcat user has sufficient right i end up with a log file in a spot i don't want it, or i don't have logging at all because the tomcat user doens't have the rights to create the file there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution you suggest first (via log4j.properties in the module pack) will not solve the problem of the mail alfresco.log file name and path, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second solution sounds nice to me, although you say it's a workaround. But if i read the issue, i get the feeling that this functinality of providing a *-log4j.properties is in the main code of the Enterprise version now. Not available to 2.9 Community users? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 22:15:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158364#M112477</guid>
      <dc:creator>kbonnet</dc:creator>
      <dc:date>2008-03-27T22:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158365#M112478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The location of the alfresco.log file is specified in log4j.properties - feel free to put an absolute path in there if that better meets your needs.&amp;nbsp; The problem is that currently (pre-2.2), there's no clean way to override the log4j.properties file - you have to modify the version in the alfresco.war file directly, or resort to the "re-initialise" approach implemented in the class attached to AR-1744.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The logic that was added to 2.2 to allow log4j.properties overrides will be merged into the community (2.9) branch at some point (and may already be there in the nightly builds; I'm not sure) - it's just that we don't immediately merge changes between branches (whether edition branches or version branches).&amp;nbsp; Our goal is to keep the Enterprise and Community editions functionally identical, however the reality is that merging is not cost-free, so changes may take a little time to propagate (I should also mention that this applies in both directions - there are some things in community that take time to appear in enterprise, as well as the reverse situation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 22:31:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158365#M112478</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-03-27T22:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158366#M112479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This update was merged from v2.2 to HEAD on 10th March so will be available from a nightly build after that date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankss,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 22:44:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158366#M112479</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-03-27T22:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158367#M112480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, you both!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 08:38:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158367#M112480</guid>
      <dc:creator>kbonnet</dc:creator>
      <dc:date>2008-03-28T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule Alfresco's log4j.properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158368#M112481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I put a &lt;/SPAN&gt;&lt;EM&gt;dev-log4j.properties&lt;/EM&gt;&lt;SPAN&gt; in&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;$TOMCAT_HOME/shared/classes/alfresco/extension&lt;/EM&gt;&lt;SPAN&gt;/ , but the &lt;/SPAN&gt;&lt;EM&gt;WEB-INF/classes/log4j/properties&lt;/EM&gt;&lt;SPAN&gt; is still used by the application. What should I check in a 2.9b CE to have the &lt;/SPAN&gt;&lt;EM&gt;dev-log4j.properties&lt;/EM&gt;&lt;SPAN&gt; taken into account?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gilles&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 17:16:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overrule-alfresco-s-log4j-properties/m-p/158368#M112481</guid>
      <dc:creator>gilles</dc:creator>
      <dc:date>2008-08-29T17:16:25Z</dc:date>
    </item>
  </channel>
</rss>

