On Fri, 22 Nov 2002 13:54, Tony Thompson wrote:
> >> Also, since I am asking questions, how do you turn off logging
> >> completely for a category? Would you just set the priority to
> >> FATAL_ERROR?
> >
> >That would still catch fatal errors. The best way to do it would be to
> > attach a NullOutputLogTarget
>
> I glanced at the code and I was wondering if are you going to lose
> efficiency by simply setting a null log target? So, for instance, if DEBUG
> is enabled, but the log target is the bit bucket, I have already had the
> JVM go through the expensive string operations building a message to log
> only to have it thrown away. Would it make more sense to have something
> like Priority.NONE so that overhead is avoided?
I like it. Want to send a patch?
--
Cheers,
Peter Donald
---------------------------------------------------
"Therefore it can be said that victorious warriors
win first, and then go to battle, while defeated
warriors go to battle first, and then seek to win."
- Sun Tzu, the Art Of War
---------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>