-
Type:
Story
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: 7.0.0 DXP FP28, 7.0.X EE, 7.0.4 CE GA5, Master
-
Component/s: Performance > Caching Infrastructure
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Priority Level:Low
-
Git Pull Request:
Usage:
Enable debugging for all caches
- Add empty file com.liferay.portal.cache.ehcache-log4j-ext.xml to liferay-bundle/osgi/log4j
- 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
- Add empty file com.liferay.portal.cache.ehcache-log4j-ext.xml to liferay-bundle/osgi/log4j
- 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