commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [logging] bytecode engineering (was: Re: Commons Configuration - Digester Logging turned off)
Date Fri, 29 Oct 2004 17:05:53 GMT

On 26 Oct 2004, at 23:58, Michael Schuerig wrote:

> On Wednesday 27 October 2004 00:35, robert burrell donkin wrote:
>> i'd go for static modification: run an enhancer ant task at a
>> commons-digester.jar
>> and create a commons-digester-no-logging.jar with logging turned off.
>
> There already is an ant task that does something pretty similar.
> Just4log surrounds logging calls at bytecode level with something
> equivalent to this
>
> if (logger.isDebugEnabled()) {
>     logger.debug(...);
> }
>
> Just4log uses BCEL and supports Commons Logging, Log4J, JDK 1.4 
> Logging.
>
> See http://just4log.sourceforge.net/

that looks very cool indeed :)

it's similar without being quite the same. the idea would be to replace 
the call to the LogFactory.getLog call with a call returning a direct, 
fast implementation.

i'm interested to see that the project uses BCEL directly rather than 
CGLIB. anyone have any opinions about this?

- robert


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


Mime
View raw message