如何禁用 Worklight Analytics 日志记录
How to Disable Worklight Analytics logging
我们使用的是 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.sendDataToURL 目标服务器响应代码:201
它正在大量增加我们的日志文件。我正在查看此处的其他帖子和 Liberty 日志记录选项,但这些设置仅适用于 trace.log 文件(如果已启用)。
这是我当前的 bootstrap.properties 文件:
websphere.log.provide=binaryLogging-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,设置为"No Logging":
如果您想阻止写入 System.out 的任何内容被写入您的 Liberty messages.log 和 console.log,请在 server.xml 的日志记录元素中设置您的 traceSpecification如下:
<logging traceSpecification="SystemOut=off"/>
由于您使用的是二进制日志记录,因此您还可以控制在 运行 binaryLog 命令时过滤掉哪些记录器,如下所示:
binarylog view daytrader3sample --excludeLogger="SystemOut"
通过更改 traceSpecification,您可以避免将 System.out 内容添加到您的日志中。通过在 binaryLog 命令上使用过滤器,您只需从 binaryLog 输出中忽略 SystemOut,而不会影响实际存储在日志中的内容。
我们使用的是 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.sendDataToURL 目标服务器响应代码:201
它正在大量增加我们的日志文件。我正在查看此处的其他帖子和 Liberty 日志记录选项,但这些设置仅适用于 trace.log 文件(如果已启用)。
这是我当前的 bootstrap.properties 文件:
websphere.log.provide=binaryLogging-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,设置为"No Logging":
如果您想阻止写入 System.out 的任何内容被写入您的 Liberty messages.log 和 console.log,请在 server.xml 的日志记录元素中设置您的 traceSpecification如下:
<logging traceSpecification="SystemOut=off"/>
由于您使用的是二进制日志记录,因此您还可以控制在 运行 binaryLog 命令时过滤掉哪些记录器,如下所示:
binarylog view daytrader3sample --excludeLogger="SystemOut"
通过更改 traceSpecification,您可以避免将 System.out 内容添加到您的日志中。通过在 binaryLog 命令上使用过滤器,您只需从 binaryLog 输出中忽略 SystemOut,而不会影响实际存储在日志中的内容。