IBM Support

IBM Datacap Web Services (wTM) logging improvements with size and number of logs

Product Documentation


Abstract

To help control the amount of log data, two logging parameters, "maxFileSize" and "maxFileCount", are added in the "wTMservice.exe.config" file (for wTM as a Windows Service) and in the "Web.config" file (for wTM as an IIS application).

Content

The maxFileSize parameter represents the size in megabytes (MB), and must be a positive integer. The maxFileCount parameter represents the maximum number of log files (each of size specified by the maxFileSize value) to be created before starting over. For example, if maxFileCount is 5, then log files wtm.0.logwtm.1.logwtm.2.logwtm.3.log, and wtm.4.log are created before starting over with wtm.0.log again. The default value of maxFileSize is 50 MB and that of maxFileCount is 5.

<setting name="maxFileSize" serializeAs="String">

     <value>50</value>

</setting>

<setting name="maxFileCount" serializeAs="String">

     <value>5</value>

</setting>

In general, the logging must not be enabled in production because logging I/O affects the performance negatively. However, when needed, logging can be enabled and disabled at run time without having to restart the wTM service or wTM IIS application. If you enable logging to re-create a problem and collect logs, then disable logging after collecting the logs by changing the logEnable property to False.

To enable logging, change the value in the setting element in the config file from False to True.

<setting name="logEnable" serializeAs="String">

    <value>False</value>

</setting>

Also, make sure logFlushBuffer is changed to True.

<setting name="logFlushBuffer" serializeAs="String">

    <value>False</value>

</setting>

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZRWV","label":"IBM Datacap"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.1.4","Edition":"Interim Fix 003","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
08 September 2020

UID

ibm10730955