Worklight-将应用程序日志发送到特定日志文件 [英] Worklight- Send application logs to specific log file
问题描述
我们在生产服务器(App1-App2)上运行了两个混合应用程序。
We have two hybrid applications running on our production server (App1-App2).
我们定义了两个级别的日志记录:
We define two levels of our logging :
WL.Logger.debug
:用于记录应用程序的请求和响应,如果我们需要跟踪用户交互以调试记录的任何错误到 trace.log
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
:用于记录我们的应用程序可能发生的错误,该错误用于登录 SystemOut.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?
喜欢:
App1: WL.Logger.debug>>> ;>>> App1_Debug.log
`WL.Logger.error>>>>>> App1_Error.log`
App2同样如此。
WL版本6.2.0.1
WL Version 6.2.0.1
推荐答案
从Worklight的角度来看,我只能说Worklight没有,也不能提供您可以生成用于记录的不同文件。这是您正在使用的基础应用程序服务器(WebSphere)的一个功能(或可能是一个不存在的功能)。
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).
这篇关于Worklight-将应用程序日志发送到特定日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!