tags:

views:

26

answers:

1

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?

A: 

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.

Stephen C