public class LoggingHandler extends AbstractMessageHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
LoggingHandler.Level |
loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
LoggingHandler(String level)
Create a LoggingHandler with the given log level (case-insensitive).
|
| Modifier and Type | Method and Description |
|---|---|
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(String expressionString) |
void |
setLevel(LoggingHandler.Level level)
Set the logging
LoggingHandler.Level. |
void |
setLoggerName(String loggerName) |
void |
setShouldLogFullMessage(boolean shouldLogFullMessage)
Specify whether to log the full Message.
|
configureMetrics, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic LoggingHandler(String level)
The valid levels are: FATAL, ERROR, WARN, INFO, DEBUG, or TRACE
level - The level.public void setExpression(String expressionString)
public LoggingHandler.Level getLevel()
LoggingHandler.Level.public void setLevel(LoggingHandler.Level level)
LoggingHandler.Level.level - the level.public void setLoggerName(String loggerName)
public void setShouldLogFullMessage(boolean shouldLogFullMessage)
false by default.shouldLogFullMessage - true if the complete message should be logged.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerprotected void onInit()
throws Exception
IntegrationObjectSupportonInit in class AbstractMessageHandlerException - Any exception.protected void handleMessageInternal(Message<?> message) throws Exception
handleMessageInternal in class AbstractMessageHandlerException