commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Schuerig <mich...@schuerig.de>
Subject Re: [logging] bytecode engineering (was: Re: Commons Configuration - Digester Logging turned off)
Date Tue, 26 Oct 2004 22:58:44 GMT
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/

Michael

-- 
Michael Schuerig                       Face reality and stare it down
mailto:michael@schuerig.de        --Jethro Tull, Silver River Turning
http://www.schuerig.de/michael/

---------------------------------------------------------------------
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