This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
jQuery in Action, 3rd edition