Liferay diaries: Log4j

Setting up log4j for a Liferay and Spring application is easy:
in /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>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s