logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: How can i built a java application using java debug class on
Date Mon, 28 Aug 2006 22:08:22 GMT
Logging is a common case study in articles and books on AspectJ  
(http://www.eclipse.org/aspectj/) and Aspect Oriented Programming  
(AOP).  Doing a quick search for "AspectJ" and logging came with  
several  articles including http://www.developer.com/java/other/ 

AspectJ allows you to write aspects (that is, rules) which are weaved  
into the byte code of a Java application.  Basically, you'd have your  
app in Java, a few Aspects that describe the logging that should  
occur on method entry and exit and the AspectJ compiler would produce  
Java byte-code that would intermix instructions from your Java code  
with those generated by the aspects.

Don't have any personal experience with AspectJ, so I can't do more  
than point you that way.  Experimenting with it has been on my to-do  
list for quite a while.

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

View raw message