Time for action – changing log levels permanently
Let's change the log level of LoginPostAction
permanently:
Stop the Liferay Portal server, if it is running.
Now, locate the
liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF\classes
directory from the root directory where you installed the Liferay Portal bundle.Create a new directory called
META-INF
in theclasses
directory.Copy
7003OS-chapter-10\code\log4j.dtd
from the downloaded code to theMETA-INF
directory created in the preceding step.Create a new file called
porta-log4j-ext.xml
in theMETA-INF
directory we just created and copy the following code and save it:<?xml version="1.0"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <category name="com.liferay.portal.events.LoginPostAction"> <priority value="DEBUG" /> </category> </log4j:configuration>
Start the Liferay Portal server.
Sign in to the Neighborhood portal...