Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging using Spring AOP

 
Vaibhav G Garg
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a commonly discussed scenario. If you google 'Logging Spring AOP' you will find tons of examples/blogs doing just that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic