Ibm mobilefirst 如何禁用Worklight Analytics日志记录

Ibm mobilefirst 如何禁用Worklight Analytics日志记录,ibm-mobilefirst,websphere-liberty,mobilefirst-server,Ibm Mobilefirst,Websphere Liberty,Mobilefirst Server,我们正在使用MobileFirst 6.3+Liberty 8.5.5,需要删除message.log文件中的此项: [11/12/15 12:00:21:808 ART]00000108 SystemOut O com.worklight.analytics.api.AnalyticsHttpService.senddatatour目标服务器响应代码:201 这大大增加了我们的日志文件。我在这里查看了其他帖子和Liberty日志选项,但这些设置仅适用于trace.log文件(如果已启用) 这是

我们正在使用MobileFirst 6.3+Liberty 8.5.5,需要删除message.log文件中的此项:

[11/12/15 12:00:21:808 ART]00000108 SystemOut O com.worklight.analytics.api.AnalyticsHttpService.senddatatour目标服务器响应代码:201

这大大增加了我们的日志文件。我在这里查看了其他帖子和Liberty日志选项,但这些设置仅适用于trace.log文件(如果已启用)

这是我当前的bootstrap.properties文件:

websphere.log.provide=binaryloging-1.0
com.ibm.ws.logging.max.file.size=1
com.ibm.ws.logging.max.files=10
com.ibm.ws.logging.console.log.level=警告
com.ibm.ws.logging.message.file.name=messages.log


谢谢

如下图所示登录WAS并将其设置为“无日志”:


如下图所示登录WAS并将其设置为“无日志”:


如果要阻止写入System.out的任何内容写入Liberty messages.log和console.log,请在server.xml的logging元素中设置TracSpecification,如下所示:

<logging traceSpecification="SystemOut=off"/>
binarylog view daytrader3sample --excludeLogger="SystemOut"

通过更改traceSpecification,可以避免将System.out内容添加到日志中。通过在binaryLog命令上使用过滤器,您只需从binaryLog输出中省略SystemOut,而不会影响日志中实际存储的内容。

如果要阻止写入System.out的任何内容写入Liberty messages.log和console.log,在server.xml的日志元素中设置TracSpecification,如下所示:

<logging traceSpecification="SystemOut=off"/>
binarylog view daytrader3sample --excludeLogger="SystemOut"

通过更改traceSpecification,可以避免将System.out内容添加到日志中。通过在binaryLog命令上使用过滤器,您只需从binaryLog输出中省略SystemOut,而不会影响日志中实际存储的内容。

这个问题是针对WAS Liberty的。这不是经典。这是我所提供的自由。Hussan,谢谢你的回复。我没有像自由时代那样的控制台。您知道如何使用server.xml或其他Liberty配置文件实现此功能吗?再次感谢。这个问题是为了自由。这不是经典。这是我所提供的自由。Hussan,谢谢你的回复。我没有像自由时代那样的控制台。您知道如何使用server.xml或其他Liberty配置文件实现此功能吗?再次感谢。