title: Apache karaf - How to log:display a 'lot' of information?
body: <p>Working with karaf 2.2.9 on linux ubuntu servers, I have a karaf command which launches a some code. This generates some detailed functionnal log in the karaf.log
  This command is executed regularly (every 2 hours).</p>
  <p>We want to collect the log corresponding to each execution.</p>
  <p><B>What we already do :</B><BR/>
  We have a script shell which uses the client karaf to do the following :<BR/></p>
  <ol>
  <li>Execute log:clear ==&gt; this puts a marker that will prevent any future log:display command to go before this marker<BR/></li>
  <li>Execute our command ==&gt; this writes things in the log<BR/></li>
  <li>Execute log:display -n 0 ==&gt; this gets the log between the previous log:clear and now<BR/></li>
  <li>Writes the result in a file for later statistics and analysing</li>
  </ol>
  <p>All this is repeated every two hours.</p>
  <p>In order to not limit too much the output, I have modified the &quot;size&quot; parameter in karaf/etc/org.apache.karaf.log.cfg to a higher value.</p>
  <p><B>Problem :</B><BR/>
  Sometimes, the output can be very rich (and of course, the richer it is, the more critical it becomes!).<BR/>
  So :<BR/></p>
  <ul>
  <li>if I put the &quot;size&quot; parameter too low, the log:display does not take all the required log<BR/></li>
  <li>if I put the &quot;size&quot; parameter too high, karaf hangs in an out of memory<BR/>
  I have already increased karaf xmx memory.
  The documentation on the &quot;log&quot; commands is very poor. In fact, there is no explanation how this log system works (or I couldn't find it).</li>
  </ul>
  <p><B>My question :</B><BR/>
  Is there a way to increase something so that I can take a rather comfortable amount of log between a log:clear and a log:display ?</p>
  <p>Of course, other solutions could be considered, like remaking entirely the logging method or the program, but it would cost far much more than finding the right parameter for a system which already runs.</p>