掲示板

Setting the Log level Programatically

9年前 に venka reddy によって更新されました。

Setting the Log level Programatically

Regular Member 投稿: 231 参加年月日: 11/03/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
9年前 に David H Nebinger によって更新されました。

RE: Setting the Log level Programatically

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Class not found = class not found. Add dom4j.jar and try again.