avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: AW: LogKit - FileRotation
Date Mon, 13 Aug 2001 14:53:51 GMT
On Tue, 14 Aug 2001 00:57, Carsten Ziegeler wrote:
> So your interfaces all depend on File objects. I am not so familiar
> with the IO behaviour of Java, but I assume that you open and close
> the file each time you write something into the log, right?

SafeFileTarget does while FileTarget keeps the file open most of the time.

> Otherwise a RollCondition which checks the file size woudn't work,
> or am I wrong here?

hmm - hadn't thought of that. It works on unix but I guess it wouldn't work 
under windows - I think?

> I first implemented the target with this behaviour: opening the file,
> appending the information, closing it. But if you have turned on
> logging everything this will get soooo slow that I changed this
> into using an internal byte counter.

That may be a better idea.



* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *

To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

View raw message