org.jboss.soa.esb.actions
Class LogAction
java.lang.Object
org.jboss.soa.esb.actions.LogAction
- All Implemented Interfaces:
- BeanConfiguredAction
- Direct Known Subclasses:
- DisplayMemoryUsageAction, DisplayTimeAction
public class LogAction
- extends java.lang.Object
- implements BeanConfiguredAction
Action that can be subclassed to add support for logging. This action is indented
for example logging and not production grad logging.
Exemple configuration:
<action name="log" class="org.jboss.soa.esb.actions.LogAction">
<property name="logLevel" value="info"/>
<property name="logger" value="class name"/>
</action>
Options properties
<property name="message" value="Body: "/>
- Since:
- 4.3
- Author:
- Daniel Bevenius
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogAction
public LogAction()
process
public Message process(Message msg)
log
protected void log(java.lang.String messageToLog)
getLevel
public org.apache.log4j.Level getLevel()
getLogLevel
public java.lang.String getLogLevel()
setLogLevel
public void setLogLevel(java.lang.String logLevel)
setLogger
public void setLogger(java.lang.String logger)
getLogger
public java.lang.String getLogger()
setMessage
public void setMessage(java.lang.String string)
setLogBody
public void setLogBody(boolean logBody)