You should be able to write your configuration file like this:
<targets>
<file id="debug">
<filename>/var/logs/HICLogs/debugnr.log</filename>
<format type="extended">%7.7{priority} %23.23{time:yyyy-MM-dd
HH:mm:ss:SSS} [%{category}] (%{context:Level}): %{message}
\n%{throwable}</format>
<append>true</append>
<rotation type="revolving" init="-1" max="10">
<or>
<size>500000</size>
</or>
</rotation>
</file>
</targets>
The <size> parameter is to key but also note that the "<rotation type"
defines the maximum number of files created. If you use -1, the rotation
will start by overwriting the oldest file.
<[EMAIL PROTECTED]> on 27/05/2003 22:42:01
Please respond to "Avalon framework users" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: [LogKit] max size for log file
Hi.
I see a need to limit the size of a log file to some maximum value.
Can I do this with LogKit in connection with ExcaliburLogger?
If yes, how can I do it?
If not, has someone done a simple and clean workaround or patch to
address this issue?
Cheers,
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
****************************************************************
NOTICE - This message is intended only for the use of the
addressee named above and may contain privileged and
confidential information. If you are not the intended recipient
of this message you are hereby notified that you must not
disseminate, copy or take any action based upon it. If you
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]