|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.mediators.AbstractMediator org.apache.synapse.mediators.builtin.LogMediator
public class LogMediator
Logs the specified message into the configured logger. The log levels specify which attributes would be logged, and is configurable. Additionally custom properties may be defined to the logger, where literal values or expressions could be specified for logging. The custom properties are printed into the log using the defined separator (\n, "," etc)
Field Summary | |
---|---|
static int |
CATEGORY_DEBUG
|
static int |
CATEGORY_ERROR
|
static int |
CATEGORY_FATAL
|
static int |
CATEGORY_INFO
|
static int |
CATEGORY_TRACE
|
static int |
CATEGORY_WARN
|
static int |
CUSTOM
Only properties specified to the Log mediator |
static String |
DEFAULT_SEP
|
static int |
FULL
all attributes of level 'simple' and the SOAP envelope and any properties |
static int |
HEADERS
All SOAP header blocks and any properties |
static int |
SIMPLE
To, From, WSAction, SOAPAction, ReplyTo, MessageID and any properties |
Fields inherited from class org.apache.synapse.mediators.AbstractMediator |
---|
log, trace, traceState |
Constructor Summary | |
---|---|
LogMediator()
|
Method Summary | |
---|---|
void |
addAllProperties(List<MediatorProperty> list)
|
void |
addProperty(MediatorProperty p)
|
int |
getCategory()
|
int |
getLogLevel()
|
List<MediatorProperty> |
getProperties()
|
String |
getSeparator()
|
boolean |
mediate(MessageContext synCtx)
Logs the current message according to the supplied semantics |
void |
setCategory(int category)
|
void |
setLogLevel(int logLevel)
|
void |
setSeparator(String separator)
|
Methods inherited from class org.apache.synapse.mediators.AbstractMediator |
---|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CUSTOM
public static final int SIMPLE
public static final int HEADERS
public static final int FULL
public static final int CATEGORY_INFO
public static final int CATEGORY_DEBUG
public static final int CATEGORY_TRACE
public static final int CATEGORY_WARN
public static final int CATEGORY_ERROR
public static final int CATEGORY_FATAL
public static final String DEFAULT_SEP
Constructor Detail |
---|
public LogMediator()
Method Detail |
---|
public boolean mediate(MessageContext synCtx)
synCtx
- (current) message to be logged
public int getLogLevel()
public void setLogLevel(int logLevel)
public String getSeparator()
public void setSeparator(String separator)
public void addProperty(MediatorProperty p)
public void addAllProperties(List<MediatorProperty> list)
public List<MediatorProperty> getProperties()
public int getCategory()
public void setCategory(int category)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |