<?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 log4j not flushing file log contents in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293424#M246554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some troubles with Alfresco 4.2.e file logs: I can see many messages in Tomcat console, but I cannot have the same messages written into the log file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to change the log4j configuration in WEB-INF\classes\log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;modifying the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;log4j.appender.File.ImmediateFlush=true&lt;BR /&gt;log4j.appender.File.BufferedIO=false&lt;BR /&gt;log4j.appender.File.BufferSize=1&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;or (lower case)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;log4j.appender.File.immediateFlush=true&lt;BR /&gt;log4j.appender.File.bufferedIO=false&lt;BR /&gt;log4j.appender.File.bufferSize=1&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;but nothing had the expected result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to override the default buffering behaviour? I do need the log file to be promptly updated as soon as an error is pointed out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlo&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 08:52:17 GMT</pubDate>
    <dc:creator>cgiuliano</dc:creator>
    <dc:date>2014-01-22T08:52:17Z</dc:date>
    <item>
      <title>log4j not flushing file log contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293424#M246554</link>
      <description>Hi everybody,I have some troubles with Alfresco 4.2.e file logs: I can see many messages in Tomcat console, but I cannot have the same messages written into the log file.I've tried to change the log4j configuration in WEB-INF\classes\log4j.propertiesmodifying the followinglog4j.appender.File.Immedia</description>
      <pubDate>Wed, 22 Jan 2014 08:52:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293424#M246554</guid>
      <dc:creator>cgiuliano</dc:creator>
      <dc:date>2014-01-22T08:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: log4j not flushing file log contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293425#M246555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what kind of message do you see in the Tomcat logs? It may very well be that you get messages which do not even pass through Log4j and thus can't be logged to file…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not yet encountered any situation where Log4j would buffer any log output in Alfresco. The most common reason for Log4j not to log are missing file system permission, i.e. the Tomcat server not being allowed to write to the path pointing to alfresco.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:21:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293425#M246555</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-01-23T19:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: log4j not flushing file log contents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293426#M246556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot for your suggestion (and sorry for my late reply…).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to take a screenshot and provide more information, in case I'll come into this issue again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlo&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 13:48:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/log4j-not-flushing-file-log-contents/m-p/293426#M246556</guid>
      <dc:creator>cgiuliano</dc:creator>
      <dc:date>2014-02-11T13:48:15Z</dc:date>
    </item>
  </channel>
</rss>

