The short answer to your question is that log4j is not welcomed by DI.
The Log4jConfigurer.initLogging() method has a void return value, so nothing needs to be entered. The idea is that you call this method, which loads log4j, and then you use the Log4j API as usual (using Logger.getLogger(getClass()) ).
Usually you did not configure Log4jConfigurer as a Spring bean, but most often you called it directly from your own code at application startup time.
If this is a webapp, then Spring provides Log4jConfigurer alternatives that are better suited for this environment ( Log4jWebConfigurer , Log4jConfigListener ).
By the way, 2 years ago I submitted a request to allow startups of logs, and finally it was flagged as a fix for Spring 3.1. Horray
skaffman
source share