my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
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]
 
 
subject: Logging using Spring AOP
 
Similar Threads
AOP
What is AOP?
Logging username Using MethodInterceptor with AOP
Spring AOP
Logging username Using MethodInterceptor with AOP