You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rui Alberto <ru...@ptinovacao.pt> on 2007/02/08 18:19:19 UTC
logkit rotation
Hi all,
I'd like to configure a log target in logkit.xconf to rotate files
everyday.
Once a new day starts, logs are written into a new file.
Is that possible using logkit?
Thanks for any help.
Rui
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: logkit rotation
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Rui Alberto wrote:
> Hi all,
> I'd like to configure a log target in logkit.xconf to rotate files
> everyday.
> Once a new day starts, logs are written into a new file.
>
> Is that possible using logkit?
>
something like:
> <cocoon id="main">
> <filename>${context-root}/WEB-INF/logs/cocoon</filename>
> <format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}%{query}) %{thread}/%{class:short}: %{message}\n%{rootThrowable}</format>
> <append>true</append>
> <rotation type="unique" pattern="-yyyyMMdd" suffix=".log">
> <or>
> <size>100m</size>
> <time>24:00:00</time>
> </or>
> </rotation>
> </cocoon>
--
Leszek Gawron CTO at MobileBox Ltd.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org