File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Logging using Spring AOP

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 141
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

Joined: Mar 07, 2010
Posts: 1682

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]
I agree. Here's the link:
subject: Logging using Spring AOP
It's not a secret anymore!