Details

      Description

      Usage:

      Enable debugging for all caches

      1. Add empty file com.liferay.portal.cache.ehcache-log4j-ext.xml to liferay-bundle/osgi/log4j
      2. In com.liferay.portal.cache.ehcache-log4j-ext.xml, add:
        <?xml version="1.0"?>
        <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
        
        <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
        <category name="com.liferay.portal.cache.ehcache.internal.event.PortalCacheCacheEventListener">
        <priority value="DEBUG" />
        </category>
        </log4j:configuration>

        Start portal and debugging for all caches are enabled

      Enable debugging for specific caches

      1. Add empty file com.liferay.portal.cache.ehcache-log4j-ext.xml to liferay-bundle/osgi/log4j
      2. In com.liferay.portal.cache.ehcache-log4j-ext.xml, add:
        <?xml version="1.0"?>
        <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
        
        <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
        <category name="com.liferay.portal.cache.ehcache.internal.event.PortalCacheCacheEventListener.test.cache">
        <priority value="DEBUG" />
        </category>
        </log4j:configuration>

        Start portal and debugging for "test.cache" is enabled

        Attachments

          Activity

            People

            • Assignee:
              victor.ware Victor Ware
              Reporter:
              tina.tian Tina Tian
              Recent user:
              Victor Ware
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: