Question & Answer
Question
Enabling Java logging for the Configuration Manager Client and Server *|* -8285A23A1142F3BB852579330073200A- *|*
Answer
Technote (troubleshooting)
Problem(Abstract)
How can I enable additional logging for the Configuration Manager Client and Server?
Resolving the problem
WebSphere Commerce V7.0 Fix Pack 2 and Higher
In WebSphere Commerce V7.0 Fix Pack 2 both the config_server and config_client utilities as well the config_ant utility were enhanced to use Java logging. The Javav logging configuration is defined in the following properties file:
? ? <WC_installdir>/config/deployment/properties/config.properties.
The output of the Java logging goes to the following file:
? ? <wc_userInstallDir>/logs/config.log
By default the logging level is set low (it is set to 'INFO') so very little is captured in the log. To capture additional output when investigating configuration issues append the following line to the file.
? ? com.ibm.commerce.config.level = FINE
Save the file. When you reproduce the issue there will be additional statements printed in the config.log file.
WebSphere Commerce V7.0 Fix Pack 1 or Lower
If you are using WebSphere Commerce V7.0 Fix Pack 1 (7.0.0.1) or have no Fix Pack applied you can follow the below instructions to add Java logging capability to the configuration utilities
To enable Java logging for the Configuration Client or Server perform the following steps:
1. Place the attached config.properties file in the following location:
? ? <WC_installdir>/config/properties/config.properties
config.properties:config.properties
2. Update the executable to reference the config.properties file by inserting the following line into the Java command:
-Djava.util.logging.config.file="<WC_installdir>/config/properties/config.properties"
Configuration Manager Client: <WC_installdir>/bin/config_client.sh
? <WC_installdir>/bin/configClient.bat
Configuration Manager Server: <WC_installdir>/bin/config_server.sh
? <WC_installdir>/bin/config_server.bat
Example (config_client.sh)
...
${JAVA_EXE?} \
? ? -classpath $CLASSPATH \
? ? -DIDIR="$WPMDIR"\
? ? -Djava.security.policy="config.policy" \
? ? ...
-Djava.util.logging.config.file="/opt/IBM/WebSphere/CommerceServer70/config/properties/config.properties" \
...
The logging output will be written to the following file:
<WC_installdir>/logs/config.log
If the Configuration Manager Client and Server are running on the same machine and logging is required for both a separate config.properties file can be created for one of them (either the client or server executable) of which a separate output log file would be specified.
Related information
Gathering additional traces from Configuration Manager
Historical Number
62450
422
000
Was this topic helpful?
Document Information
Modified date:
13 October 2021
UID
ibm10771537