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.
--
Cheers,
Pete
*-----------------------------------------------------*
* "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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]