Worklight- Send application logs to specific log file

匆匆过客 提交于 2020-01-05 17:40:33

问题


We have two hybrid applications running on our production server (App1-App2).

We define two levels of our logging :

WL.Logger.debug: Used to log the request and response of the applications if we need to track user interactions to debug any error which is logged to trace.log

WL.Logger.error: Used to log the error that could happen on our application which used to log to SystemOut.log

What is the configuration that we need to set to put a specific file logging for each application? and Is it applicable?

Like:

App1: WL.Logger.debug >>>>>> App1_Debug.log

`WL.Logger.error>>>>>> App1_Error.log`

And same for App2.

WL Version 6.2.0.1


回答1:


From a Worklight perspective I can only say that Worklight does not, and cannot, provide you an ability to produce different files for logging. This is a feature (or maybe a nonexisting feature) of the underlying application server that you're using (WebSphere).



来源:https://stackoverflow.com/questions/36041659/worklight-send-application-logs-to-specific-log-file

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