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

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:
    • LinuxAIXWindowsWAS_installdir/profiles/instance_name/logs/server1
    • For IBM i OS operating systemWAS_userdir/profiles/instance_name/logs/server1
    • WebSphere Commerce DeveloperWCDE_installdir/wasprofiles/logs/server1
  • Logging properties exist for the search utilities. You can get more logging information by updating the logging level from INFO to FINEST:
    
    # 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:
    • WebSphere Commerce DeveloperWCDE_installdir\workspace\WC\xml\config\dataimport\logging.properties
    • LinuxAIXWindowsWC_installdir/instances/instance_name/xml/config/dataimport/logging.properties
    • For IBM i OS operating systemWC_instance_root/xml/config/dataimport/logging.properties
    Search build index:
    • WebSphere Commerce DeveloperWCDE_installdir\workspaces\WC\xml\config\dataimport\buildindex-logging.properties
    • LinuxAIXWindowsWC_installdir/components/foundation/wc.ear/xml/config/dataimport/buildindex-logging.properties
    • For IBM i OS operating systemWC_instance_root/xml/config/dataimport/buildindex-logging.properties
    Index prop:
    • WebSphere Commerce DeveloperWCDE_installdir\workspaces\WC\xml\config\dataimport\indexprop-logging.properties
    • LinuxAIXWindowsWC_installdir/components/foundation/wc.ear/xml/config/dataimport/indexprop-logging.properties
    • For IBM i OS operating systemWC_instance_root/xml/config/dataimport/indexprop-logging.properties
    Search migration:
    • WebSphere Commerce DeveloperWCDE_installdir\components\foundation\subcomponents\search\config\migrate-solr-search-logging.properties
    • LinuxAIXWindowsWC_eardir\components\foundation\subcomponents\search\config\migrate-solr-search-logging.properties
    Search facet migration:
    • WebSphere Commerce DeveloperWCDE_installdir\components\foundation\subcomponents\search\config\migrate-facet-logging.properties
    • LinuxAIXWindowsWC_eardir\components\foundation\subcomponents\search\config\migrate-facet-logging.properties
    Search replication configuration:
    • WebSphere Commerce DeveloperWCDE_installdir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties
    • LinuxAIXWindowsWC_eardir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties
    Search price index:
    • WebSphere Commerce DeveloperWCDE_installdir\workspace\WC\xml\config\dataimport\calculateprice-logging.properties
    • LinuxAIXWindowsWC_installdir/instances/instance_name/xml/config/dataimport/calculateprice-logging.properties
    • For IBM i OS operating systemWC_instance_root/xml/config/dataimport/calculateprice-logging.properties