Book Image

Liferay Beginner's Guide

Book Image

Liferay Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
PayPal Test Account Configuration
Index

Time for action – changing log levels permanently


Let's change the log level of LoginPostAction permanently:

  1. Stop the Liferay Portal server, if it is running.

  2. 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.

  3. Create a new directory called META-INF in the classes directory.

  4. Copy 7003OS-chapter-10\code\log4j.dtd from the downloaded code to the META-INF directory created in the preceding step.

  5. Create a new file called porta-log4j-ext.xml in the META-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>
    
  6. Start the Liferay Portal server.

  7. Sign in to the Neighborhood portal...