Using AspectJ logging without Spring

Himanshu Yadav picture Himanshu Yadav · Aug 13, 2012 · Viewed 21k times · Source

I have just working on an old application which has poor log or no logs. It does not implement Spring framework.
Is it possible to implement AspectJ logging functionality without Spring?
If yes please suggest me some good tutorials.

Answer

Ganesh Ghag picture Ganesh Ghag · Oct 16, 2012

try this link for a simple application showing use of Load time weaving without using Spring http://ganeshghag.blogspot.in/2012/10/demystifying-aop-getting-started-with.html

all that would be needed is aspectj runtime and weaver jars, and a META-INF\aop.xml file containing proper config.

also refer link for details about using aspectj ltw without spring http://www.eclipse.org/aspectj/doc/next/devguide/ltw.html