留言板

Setting the Log level Programatically

venka reddy,修改在9 年前。

Setting the Log level Programatically

Regular Member 帖子: 231 加入日期: 11-3-23 最近的帖子
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,修改在9 年前。

RE: Setting the Log level Programatically

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
Class not found = class not found. Add dom4j.jar and try again.