IBM Worklight 6.1 - Enable WL.Logger.debug in Worklight Development Server Console

▼魔方 西西 提交于 2019-12-11 19:43:50

问题


Is there any way to enable WL.Logger.debug log to be displayed in Worklight Development Server Console view in eclipse?

I am using Worklight 6.1.


回答1:


I believe not.
See my explanation from this question: IBM Worklight 6.0 - How to enable/view WL.Logger.debug in adapters?


Copy/paste:

WebSphere Liberty profile does not support debug level logging in the Worklight Development Server Console view.

You can use WL.Logger.debug and edit server.xml to view the log in the trace.log file

  1. Open the Servers view in Eclipse
  2. Expend the Worklight Development Server entry
  3. Double-click on Server Configuration (server.xml)
  4. Switch to Source tab
  5. Uncomment this line: <logging traceSpecification="com.worklight.*=debug=enabled"/>
  6. After invoking your adapter procedure you will find the log at <eclipseWorkspace>\WorklightServerConfig\servers\worklight\logs\trace.log

Be sure to re-deploy the adapter before attempting to view the logs.

Alternatively,
You can use WL.Logger.warn or WL.Logger.error; these logs will display in the Worklight Development Server Console view.



来源:https://stackoverflow.com/questions/22141157/ibm-worklight-6-1-enable-wl-logger-debug-in-worklight-development-server-conso

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!