public class LoggerMessageProcessor extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements Processor, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware, FlowConstructAware
Level.DEBUG level to the
'org.mule.runtime.core.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 |
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected String |
category |
protected ExtendedExpressionManager |
expressionManager |
protected FlowConstruct |
flowConstruct |
protected String |
level |
protected org.slf4j.Logger |
logger |
protected String |
message |
protected MuleContext |
muleContext |
| Constructor and Description |
|---|
LoggerMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
protected void |
initLogger() |
protected void |
log(Event event) |
protected void |
logWithLevel(Object object) |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setCategory(String category) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setLevel(String level) |
void |
setMessage(String message) |
void |
setMuleContext(MuleContext muleContext) |
getAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypeprotected transient org.slf4j.Logger logger
protected String message
protected String category
protected String level
protected MuleContext muleContext
protected FlowConstruct flowConstruct
protected ExtendedExpressionManager expressionManager
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected void initLogger()
public Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorprotected void log(Event event)
protected void logWithLevel(Object object)
public void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwaremuleContext - the Mule node.public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void setMessage(String message)
public void setCategory(String category)
public void setLevel(String level)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.