IBM Support

External log4j configuration xml

Question & Answer


Question

How can you make the IBM Sterling Supply Chain (v8.0 and later) Servers pick up an customized log4j configuration xml?

Cause

The implementation requires to have a custom log4j configurations for logging mechanisms

Answer

The jar file "resources.jar" contains the log4j configuration file - log4jconfig.xml. The Sterling Application reads the log4j configuration from this file.

If the requirement is to have a separate log4j configuration for Agent and Integration servers, follow these steps:

  1. Add the property "yfs.log4j.configuration=/resources/log4jconfig_<custom_name>.xml" to the customer_overrides.properties. Make sure that the file name is different than the one supplied out of the box and new log4j configuration file exist in 'resources' folder.
  2. Create resource.jar file (<INSTALL_DIR>/bin/deployer.sh -t resourcejar) - ensure that custom log4j configuration file exist in new resources.jar

Restart the Sterling JVMs and the Agent/Integrations servers will use the new log4jconfig_<customer_name>.xml.

A new 'ear' deployment is required to ensure Application Server will also refer to custom log4j configuration for logging purpose.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.2;9.1;9.0;8.5;8.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG2855

Document Information

Modified date:
16 June 2018

UID

swg21563217