Following extract shows that it should be possible to configure rotation, whether it's a cocoon specific extension i don't know.
<logkit>
<factories>
<factory type="priority-filter" class="org.apache.avalon.excalibur.logger.factory.PriorityFilterTargetFactory"/>
<factory type="servlet" class="org.apache.avalon.excalibur.logger.factory.ServletTargetFactory"/>
<factory type="cocoon" class="org.apache.cocoon.util.log.CocoonTargetFactory"/>
</factories>
<targets>
<cocoon id="core">
<filename>${context-root}/WEB-INF/logs/core.log</filename>
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
<!--
append=false: Will override existing log files on Cocoon startup
append=true: Will append to the existing log files
-->
<append>false</append>
<!--
rotation: allows you to rotate log files one they meet certain
criteria. In example below, files are rotated once they
are one hour old or bigger than 100 Mb.
<rotation type="revolving" init="1" max="4">
<or>
<size>100m</size>
<time>01:00:00</time>
</or>
</rotation>
-->
</cocoon>
........@Eda : Can you confirm this in your jmeter setup, if it works we can add it to the wiki.
Hope this helps Jorg
BAZLEY, Sebastian wrote:
JMeter currently uses Avalon LogKit:
http://avalon.apache.org/logkit/index.html
This does seem to offer log file rotation of various kinds. I'm not sure how one sets this up - it may just be a question of setting some properties, or it may mean changes to the way the Logger is created.
Sorry, I don't have time to investigate this further at the moment.
If it turns out to be just a question of setting properties, please post here and/or on the JMeter Wiki (http://wiki.apache.org/jakarta-jmeter/ - I've started a new page for logging details at http://wiki.apache.org/jakarta-jmeter/JMeterLogging)
If it needs code, then if anyone wants to create a Bugzilla enhancemement and upload a suitable patch file, I'm sure I or one of the other committers would be able to apply it.
S. -----Original Message----- From: BIJUMON RAMACHANDRAN [mailto:[EMAIL PROTECTED] Sent: 18 March 2004 16:09 To: JMeter Users List Subject: Re: JMeter log file - Roll over option
Hallo,
May be Checking "Log Errors Only" in Write Data to File section will help ....
regards
biju --- Eda Srinivasareddy <[EMAIL PROTECTED]> wrote:
Hi All
Is there a way to roll over jmeter.log?
It is very much required for me when I run the test for longer durations say 1 day, because of the exceptions thrown during execution the size of the log file is becoming around 1 GB. There by it became very difficult to analyze the exceptions logged in the log file.
If such a roll over property is there, where is this property located?
Thanks & Regards Eda
Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
__________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
___________________________________________________________________________
This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos Origin group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted. ___________________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

