public class LoggerMessageProcessor extends AbstractAnnotatedObject implements MessageProcessor, Initialisable, MuleContextAware
Level.DEBUG
level to the 'org.mule.api.processor.LoggerMessageProcessor' category. The level and
category can both be configured to suit your needs.| Modifier and Type | Class and Description |
|---|---|
static class |
LoggerMessageProcessor.LogLevel |
| Modifier and Type | Field and Description |
|---|---|
protected String |
category |
protected ExpressionManager |
expressionManager |
protected String |
level |
protected org.apache.commons.logging.Log |
logger |
protected String |
message |
protected MuleContext |
muleContext |
PHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
LoggerMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise()
Method used to perform any initialisation work.
|
protected void |
initLogger() |
protected void |
log(MuleEvent event) |
protected void |
logWithLevel(Object object) |
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setCategory(String category) |
void |
setLevel(String level) |
void |
setMessage(String message) |
void |
setMuleContext(MuleContext muleContext) |
getAnnotation, getAnnotations, setAnnotationsprotected transient org.apache.commons.logging.Log logger
protected String message
protected String category
protected String level
protected MuleContext muleContext
protected ExpressionManager expressionManager
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered fromprotected void initLogger()
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionprotected void log(MuleEvent event)
protected void logWithLevel(Object object)
public void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic void setMessage(String message)
public void setCategory(String category)
public void setLevel(String level)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.