AW: [OJB-developers] Using Log4j
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2001-11-23 07:44:13
|
Hi Leandro, > > I have been looking around for a preprocessor for a while that would > > allow to remove logging instrumentation from production > code, but allow > > a detailed logging in development mode. > > Hi thomas, have you ever looked at aspectj ??? > I think AOP (Aspect Oriented Programmig) would replace a preprocessor > with some benefits ! see http://aspectj.org > > let me know what you think ! > I'm quite interested in AOP, MOP and Reflective Architectures in general. In fact the OJB PersistenceBroker uses a MetaLevel Architecture. Of course AOP is much more generic than a home grown preprocessor. But I want to keep things simple. Using the CodeSwitcher is very simple. It's one Java class with say 150 lines of code. It can do everything we need right now. And it's easily to integrate into the ANT build scripts (took only 5 minutes). AFAIK you need a special compiler and debugger for apsectJ. This is a no go for IDE's like VisualAge for Java... but nevertheless: thanks for your suggestion! Thomas |