Spring and Log4j

May 31, 2009 in IT and Stuff

First, we should define the location of the log4j config file or log4j property file. We define it in our web.xml

log4jConfigLocation /WEB-INF/log4j.properties

After that we add event declaration usign the element. This will be invoked when the event is occured. The element should be placed between and elements.

org.springframework.web.util.Log4jConfigListener