Disabling log.info in production system using Spring AOP
Hi All,
I am currently in a situation where logs in our production system are printed continuously from quite a few domain classes which are not relevant, thus cluttering and increasing the size of the log file. The system does use Spring 2.0.8 but the domain classes are not tied with it. I was trying to find out a solution using the Spring AOP(and/or AspectJ), where I can control the logging information being printed from the files identified.
E.g.,
10 domain classes are printing in a particular method something like -- log.info("ABCD"). I want to either disable this or change this particular log line to something like -- log.debug("ABCD"). I have been doing a google but have not been able to find out a concrete answer on how to disable logging in an existing system.
Any help is really appreciated.
Regards,
Jayant