Customizing log parameters
You can customize the log parameters to capture logs and use them for further analysis.
The following sections explain the recommended steps for redirecting logs to a specific location, such as Persistent Volume.
Customizing Sterling Order Management System Software runtime
This section explains how to customize the Sterling™ Order Management System Software runtime.
- Configuring log4j1
- In addition to the information provided for customizing log4j1 configuration, you can
update the appender configuration in the custom log4j1 file to redirect the log files to a different
location as illustrated in the following examples.In addition to the information provided for customizing log4j1 configuration, you can update the appender configuration in the custom log4j1 file to redirect the log files to a different location as illustrated in the following examples.
<appender name="ALL" class="com.sterlingcommerce.woodstock.util.frame.logex.SCIAppender"> . . <param name="file" value="${LOG_DIR}/${JVM}_sci.log" /> . </appender><appender name="AGENT_LOG_APPENDER" class="com.sterlingcommerce.woodstock.util.frame.logex.SCIAppender"> . . <param name="file" value="${LOG_DIR}/${JVM}_agentserver.log" /> . </appender>
- Including the custom log4j1 in resources.jar
- To include the custom log4j1 in resources.jar, run the following commands:
cp ${EXTN_DIR}/resources/log4jconfig.custom.xml ${INSTALL_DIR}/resources${INSTALL_DIR}/bin/deployer.sh -t resourcejar