HI ranchers,
I am currently working on a web project which uses
struts for MVC, spring for IOC. We have used log4j for logging as usual.
But i want to remove that
logging concern which is in each and every method, and
centralize it using Aspect oriented programming.
Even based on the exception i want to log a particular level like if ValidationError log ERROR and if DBException log FATAL.
I want to
incorporate AOP logging in all the business classes and database access classes. can this be achieved using AOP?
For AOP i have spring
AOP and
AspectJ. Please tell me the advantages over each other. so that using one of it adds some value to my application without any performance overhead.
Please share some urls...
Thanks for your time in advance.