Customizing the Connect:Direct Server Adapter Log Settings

You can enhance the logging for the Connect:Direct Server Adapter using property files to reduce the footprint of the log files and processing overhead.

About this task

The log.properties file describes sets of properties required to define a logger used to log information to a file, including the cdinterop.log. This log.properties file should not be edited. If you need to override log.properties settings for the cdinterop.log, use the customer_overrides.properties file.

CAUTION:
Overriding the log.properties settings for the cdinterop.log can have a dramatic impact on performance and log volume.

The customer_overrides.properties file is used to override property settings in other property files. Unlike the other property files and their associated .properties.in files, the customer_overrides.properties file is not changed during installation of Application upgrades or patches. To prevent having your customized settings overwritten, you should use the customer override property file whenever possible rather than editing the Application property files or .in files.

The customer_overrides.properties file is not part of the initial Application installation and must be created. It must be named customer_overrides.properties.

To override log.properties file settings for the cdinterop.log:

Procedure

  1. In the install_dir/properties directory, locate (or create, if necessary) the customer_overrides.properties file.
  2. Open the customer_overrides.properties file in a text editor.
  3. Add the cdinteropcdinterop.log properties that you want to override to the log.properties file, using the following format:

    logService.PROPERTY_NAME=PROPERTY_VALUE

    logService—Name used to reference the log.properties file.

    PROPERTY_NAME—Name of the property as used in the log.properties file.

    PROPERTY_VALUE—The value you want to assign to the property.

    For example, assume that you want to change the maximum number of cdinterop.log files to 5. To do so, override the cdinteroplogger.maxnumlogs property value in the log.properties file by adding the following line to the customer_overrides.properties file:

    logService.cdinteroplogger.maxnumlogs=5

  4. Save and close the customer_overrides.properties file.
  5. Stop and restart Application to use the new values.
  6. Test your changes to ensure that the overrides give the desired results. If you have problems, contact IBM® Customer Support for assistance.