How to configure log4j to log Spring injections
How can I configure log4j to write an entry to the log every time it injects a class?
My use case is this: I have Autowiring 开发者_运维问答enabled. I have some interfaces with multiple implementing classes. I want to be able to see in the log which impl class gets injected to another class.
Any thoughts?
How can I configure log4j to write an entry to the log every time it injects a class? ... Any thoughts?
My thought is that the real problem is to get Spring or your application to generate the log events; e.g. to call the relevant methods on a Logger
at the relevant point.
精彩评论