public class LoggingHandler extends AbstractMessageHandler
Modifier and Type | Class and Description |
---|---|
static class |
LoggingHandler.Level |
logger
Constructor and Description |
---|
LoggingHandler(java.lang.String level)
Create a LoggingHandler with the given log level (case-insensitive).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
LoggingHandler.Level |
getLevel() |
protected void |
handleMessageInternal(Message<?> message) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setExpression(java.lang.String expressionString) |
void |
setLevel(LoggingHandler.Level level)
Set the logging
LoggingHandler.Level . |
void |
setLoggerName(java.lang.String loggerName) |
void |
setShouldLogFullMessage(boolean shouldLogFullMessage)
Specify whether to log the full Message.
|
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public LoggingHandler(java.lang.String level)
The valid levels are: FATAL, ERROR, WARN, INFO, DEBUG, or TRACE
public void setExpression(java.lang.String expressionString)
public LoggingHandler.Level getLevel()
LoggingHandler.Level
.public void setLevel(LoggingHandler.Level level)
LoggingHandler.Level
.level
- the level.public void setLoggerName(java.lang.String loggerName)
public void setShouldLogFullMessage(boolean shouldLogFullMessage)
false
by default.public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class AbstractMessageHandler
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
java.lang.Exception
protected void handleMessageInternal(Message<?> message) throws java.lang.Exception
handleMessageInternal
in class AbstractMessageHandler
java.lang.Exception