Configure event logging for the promotion engine


To configure event logging for the promotion engine:

  1. Edit the promotion engine configuration XML file in an editor. You can find this file in the following location: WC_eardir/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml

  2. Update the following code segment:
    <!--        
    <Listener
    impl="com.ibm.commerce.marketing.promotion.event.PrintPromotionLifeCycleEventListener">
       <Name>PrintLifeCycleEventListener</Name>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionChangedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionCreatedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionDeployedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionRemovedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionResetEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionResumedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionSuspendedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionWithdrawnEvent</ListensFor>
    
    </Listener>
    
    <Listener
    impl="com.ibm.commerce.marketing.promotion.event.PrintPromotionExecutionEventListener">
       <Name>PrintExecutionEventListener</Name>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionAssessedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionAppliedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionEliminatedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionQualifiedEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionRejectedEvent</ListensFor>
    </Listener>
    
    <Listener
    impl="com.ibm.commerce.marketing.promotion.event.PrintPromotionRASEventListener">
       <Name>PrintRASEventListener</Name>
       
    <StoreKey>
          <DN>ou=BlueMall B2C Organization,o=Seller
    Organization,o=Root Organization</DN>
          <Identifier>BlueStore 201</Identifier>
       </StoreKey>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionDebugEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionErrorEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionLogEvent</ListensFor>
      
    <ListensFor>com.ibm.commerce.marketing.promotion.event.PromotionTraceEvent</ListensFor>
       </Listener>
    -->
    
    
    
    The segments in bold should be removed to enable the event logging. This includes the comment delimiters (<!-- and -->) and the entire StoreKey XML element.

  3. Save the file.

  4. Restart the WebSphere Commerce server.


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 may negatively affect performance.

 

Related tasks


Configure the Promotion Engine

 

Related Reference


Example: Promotion engine configuration XML file