File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Aspect Oriented Programming and the fly likes Logging using Spring AOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Aspect Oriented Programming
Bookmark "Logging using Spring AOP " Watch "Logging using Spring AOP " New topic
Author

Logging using Spring AOP

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 140
Hi All,

I am new to Spring.

I am trying to do the logging of method entry/exit using Spring AOP. But, currently, it is printing the entry/exit statements for spring inbuilt methods also. I just want to use this AOP framework to print entry/exit of methods defined in my classes. Is there a way to do that by using wildcards etc?

Thanks & Regards,
Vaibhav Garg
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

This is a commonly discussed scenario. If you google 'Logging Spring AOP' you will find tons of examples/blogs doing just that.


[How To Ask Questions][Read before you PM me]
 
Don't get me started about those stupid light bulbs.
 
subject: Logging using Spring AOP