Announcement Announcement Module
Collapse
No announcement yet.
Is there any way not to execute a line in a method using spring AOP ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there any way not to execute a line in a method using spring AOP ?

    Hi,

    Is there any way not to execute a line in a method using spring AOP ?

    Scenario : I have an application where we have some unnecessary logging which are undesirable. The culprit is a class where I have bunch of logging statements such as log.info and in the prod environment I don't have access to this class but I have access to the spring config xml. Can I apply an aspect to the class/in particular a method to stop executing the log.info statements ?
    Thanks in advance

    Gourab

  • #2
    Ehrm... Why? Simply disable logging for that class...

    Comment


    • #3
      Originally posted by Marten Deinum View Post
      Ehrm... Why? Simply disable logging for that class...
      Hi Marten,
      As I have already mentioned I do not have access to any other file or class except the spring config.

      Comment


      • #4
        hi dear
        try to enable AspectJ support... may be it will help you....

        Comment

        Working...
        X