Liferay diaries: Log4j
Posted on 17/10/2011 by George Georgovasilis
Setting up log4j for a Liferay and Spring application:
/WEB-INF/log4j.properties
log4j.category.org.springframework=DEBUG,console
And some entries in web.xml
<context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/log4j.properties</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener>