aspose 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

Win a copy of The Software Craftsman this week in the Agile 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: 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

Joined: Mar 07, 2010
Posts: 1681

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]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Logging using Spring AOP