Enabling tracing and logging for WebSphere Commerce Search
You can enable tracing and logging of WebSphere Commerce Search features to help debug server-side issues.
Before you begin
Ensure that you have completed the following tasks:
Procedure
-
You can enable the trace for WebSphere Commerce Search features by specifying the following
trace string in the WebSphere Application Server administration console.
On the WebSphere Commerce server:
com.ibm.commerce.catalog.*=all:com.ibm.commerce.foundation.*=all:com.ibm.commerce.search.*=all
On the WebSphere Commerce Search server:com.ibm.commerce.foundation.*=all: com.ibm.commerce.rest.*=all: org.apache.solr.*=all: org.apache.wink.*=all: com.ibm.commerce.solr.*=all
This trace string enables traces for WebSphere Commerce Search that can be used for troubleshooting issues.
-
Additionally, for price index troubleshooting, enable the following traces:
com.ibm.commerce.foundation.dataimport.priceindex.*=finest com.ibm.commerce.price.*=finest com.ibm.websphere.commerce.WC_ORDER
-
The log file is located in the following directory:
- WAS_installdir/profiles/instance_name/logs/server1
- WAS_userdir/profiles/instance_name/logs/server1
- WCDE_installdir/wasprofiles/logs/server1
-
Logging properties exist for the search utilities. You can get more logging information by
updating the logging level from
INFO
toFINEST
:# Default global logging level, INFO com.ibm.commerce.level=FINEST
For the following utilities and log files:
Setup search index:- WC_installdir/components/foundation/subcomponents/search/config/logging.properties
Search preprocessor:- WCDE_installdir\workspace\WC\xml\config\dataimport\logging.properties
- WC_installdir/instances/instance_name/xml/config/dataimport/logging.properties
- WC_instance_root/xml/config/dataimport/logging.properties
Search build index:- WCDE_installdir\workspaces\WC\xml\config\dataimport\buildindex-logging.properties
- WC_installdir/components/foundation/wc.ear/xml/config/dataimport/buildindex-logging.properties
- WC_instance_root/xml/config/dataimport/buildindex-logging.properties
Index prop:- WCDE_installdir\workspaces\WC\xml\config\dataimport\indexprop-logging.properties
- WC_installdir/components/foundation/wc.ear/xml/config/dataimport/indexprop-logging.properties
- WC_instance_root/xml/config/dataimport/indexprop-logging.properties
Search migration:- WCDE_installdir\components\foundation\subcomponents\search\config\migrate-solr-search-logging.properties
- WC_eardir\components\foundation\subcomponents\search\config\migrate-solr-search-logging.properties
Search facet migration:- WCDE_installdir\components\foundation\subcomponents\search\config\migrate-facet-logging.properties
- WC_eardir\components\foundation\subcomponents\search\config\migrate-facet-logging.properties
Search replication configuration:- WCDE_installdir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties
- WC_eardir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties
Search price index:- WCDE_installdir\workspace\WC\xml\config\dataimport\calculateprice-logging.properties
- WC_installdir/instances/instance_name/xml/config/dataimport/calculateprice-logging.properties
- WC_instance_root/xml/config/dataimport/calculateprice-logging.properties