Coverage Report - org.mule.endpoint.outbound.OutboundLoggingMessageProcessor
 
Classes in this File Line Coverage Branch Coverage Complexity
OutboundLoggingMessageProcessor
0%
0/6
0%
0/2
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.endpoint.outbound;
 8  
 
 9  
 import org.mule.api.MuleEvent;
 10  
 import org.mule.api.MuleException;
 11  
 import org.mule.api.processor.MessageProcessor;
 12  
 import org.mule.util.ObjectUtils;
 13  
 
 14  
 import org.apache.commons.logging.Log;
 15  
 import org.apache.commons.logging.LogFactory;
 16  
 
 17  0
 public class OutboundLoggingMessageProcessor implements MessageProcessor
 18  
 {
 19  0
     protected final transient Log logger = LogFactory.getLog(getClass());
 20  
 
 21  
     public MuleEvent process(MuleEvent event) throws MuleException
 22  
     {
 23  0
         if (logger.isDebugEnabled())
 24  
         {
 25  0
             logger.debug("sending event: " + event);
 26  
         }
 27  
 
 28  0
         return event;
 29  
     }
 30  
 
 31  
     @Override
 32  
     public String toString()
 33  
     {
 34  0
         return ObjectUtils.toString(this);
 35  
     }
 36  
 }