<?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 limit the size of log files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-size-of-log-files/m-p/281005#M234135</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;I wanted to limit the size of log files,because it eats up too much disk space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And is it correct that insturction ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"param name="MaxFileSize" value="1024KB"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 16:08:51 GMT</pubDate>
    <dc:creator>midoscofield</dc:creator>
    <dc:date>2013-08-26T16:08:51Z</dc:date>
    <item>
      <title>limit the size of log files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-size-of-log-files/m-p/281005#M234135</link>
      <description>Hello,I wanted to limit the size of log files,because it eats up too much disk space.And is it correct that insturction ?"param name="MaxFileSize" value="1024KB"Thanks</description>
      <pubDate>Mon, 26 Aug 2013 16:08:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-the-size-of-log-files/m-p/281005#M234135</guid>
      <dc:creator>midoscofield</dc:creator>
      <dc:date>2013-08-26T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: limit the size of log files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-size-of-log-files/m-p/281006#M234136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since Alfresco uses log4j for logging, you have some choices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This solution gives you the opportunity to limit the file size and to decide the number of backup files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.appender.R.MaxFileSize=100KB&lt;BR /&gt;# Keep one backup file&lt;BR /&gt;log4j.appender.R.MaxBackupIndex=1&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I prefer the DailyRollingFileAppender that rolls each day on a new file&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# LOG4J daily rolling log files configuration&lt;BR /&gt;log4j.rootLogger=DEBUG, RollingAppender&lt;BR /&gt;log4j.appender.RollingAppender=org.apache.log4j.DailyRollingFileAppender&lt;BR /&gt;log4j.appender.RollingAppender.File=app.log&lt;BR /&gt;log4j.appender.RollingAppender.DatePattern='.'yyyy-MM-dd&lt;BR /&gt;log4j.appender.RollingAppender.layout=org.apache.log4j.PatternLayout&lt;BR /&gt;log4j.appender.RollingAppender.layout.ConversionPattern=[%p] %d %c %M - %m%n&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can chack log4j page for more info at &lt;/SPAN&gt;&lt;A href="http://logging.apache.org/" rel="nofollow noopener noreferrer"&gt;http://logging.apache.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:03:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-the-size-of-log-files/m-p/281006#M234136</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2013-09-06T15:03:32Z</dc:date>
    </item>
  </channel>
</rss>

