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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to