> If going with this approach, just a isTraceEnabled public variable so that
> you don't incure the cost of a method call. (since you'll be doing the check
> to avoid the cost a trace method call in the first place.)
Is the cost difference between a method call and a field lookup significant
enough to introduce this level of api change? Since you will have to use
isDebugEnabled() around Logger.debug() calls.
I would rather be consistent and let Log4j handle the details of selecting
when it is ok to log at what levels than bypassing that altogether for a few
nanoseconds.
--jason
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development