Fórumok

Setting the Log level Programatically

venka reddy, módosítva 9 év-val korábban

Setting the Log level Programatically

Regular Member Bejegyzések: 231 Csatlakozás dátuma: 2011.03.23. Legújabb bejegyzések
hi,

I am trying set the log level through programmatically in custom portlet. But i am getting exception. Here is the following code just single line.

Log4JUtil.setLevel("com.test.NewPortlet", "ALL", true);

StackTrace:
java.lang.ClassNotFoundException: org.dom4j.io.SAXReader
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
at com.test.NewPortlet.doView(NewPortlet.java:88)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:218)
------------
--------------------


Can i know where i am doing wrong?
thumbnail
David H Nebinger, módosítva 9 év-val korábban

RE: Setting the Log level Programatically

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Class not found = class not found. Add dom4j.jar and try again.