Administer > Manage WebSphere Commerce features > Promotions


Configure tracing for the promotion engine

Enable tracing to investigate promotions that are not working as expected or exceptions on the storefront. The trace is written to the SystemOut.log file that contains all other WebSphere Commerce output.

Instead of enabling promotion tracing, consider using the WebSphere Commerce Server logging service instead. This way, you have the option to enable trace on a running server, if required.


Procedure

  1. Edit the promotion engine configuration XML file...

    WC_EAR/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml

  2. Update the following code segment:

    <DefaultBehavior>   
     
    <StatelessInvocation>true</StatelessInvocation>   
     
    <CheckTargetingAtRuntime>true</CheckTargetingAtRuntime>   
     
    <SkipTargetingOnCodeEntered>true</SkipTargetingOnCodeEntered>   
     
    <PriceAdjustmentBasedOnStandardOfferPrice>true</PriceAdjustmentBasedOnStandardOfferPrice>     
      <Debug>false</Debug>
    </DefaultBehavior>
    

    Update the Debug segment to true.

  3. Save the file.

  4. Restart the WebSphere Commerce Server.


Results

The trace is written to the SystemOut.log file that contains all other WebSphere Commerce output. When you have captured the required trace information, you should disable tracing as it might negatively affect performance.


+

Search Tips   |   Advanced Search