commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <>
Subject Re: [exec] How to support the various Logging APIs?!
Date Thu, 01 Jan 1970 00:00:00 GMT
---- Phil Steitz <> schrieb:
> I agree here, but also with Luc's point above about logging not being
> part of the API contract.  So the problem is how do you support the
> use case above and one more: configurable debug/trace information.  I
> don't want to hijack this thread, but these two use cases are what has
> led me to look at adding logging to [dbcp] and [pool] and I am
> currently stuck on how to do it.

Perhaps one possibility would be to have the code contain a call to an empty log method. Then
when logging is desired, use runtime code-weaving (AOP) to intercept calls to that method
and replace them with real logging calls.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message