|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.mediators.MediatorLog
public class MediatorLog
Concrete implementation of the SynapseLog interface appropriate
for usage in a mediator. Instances of this class should not be created
directly but by using the factory method
AbstractMediator.getLog(org.apache.synapse.MessageContext).
Note that this is work in progress. Please refer to https://issues.apache.org/jira/browse/SYNAPSE-374 for more information.
| Constructor Summary | |
|---|---|
MediatorLog(org.apache.commons.logging.Log defaultLog,
boolean traceOn,
MessageContext synCtx)
|
|
| Method Summary | |
|---|---|
void |
auditDebug(Object msg)
Log a message at level DEBUG to all available/enabled logs. |
void |
auditError(Object msg)
Log a message at level ERROR to all available/enabled logs. |
void |
auditFatal(Object msg)
Log a message at level FATAL to all available/enabled logs. |
void |
auditLog(Object msg)
Log a message at level INFO to all available/enabled logs. |
void |
auditTrace(Object msg)
Log a message at level TRACE to all available/enabled logs. |
void |
auditWarn(Object msg)
Log a message at level WARN to all available/enabled logs. |
void |
error(Object msg)
Log a message at level ERROR to the default log and to the trace, if trace is enabled. |
boolean |
isTraceOrDebugEnabled()
Check whether a call to SynapseLog.traceOrDebug(Object) would actually cause a log
message to be written to the logs. |
boolean |
isTraceTraceEnabled()
Check whether a call to SynapseLog.traceTrace(Object) would actually cause a log
message to be written to the logs. |
void |
logSynapseException(String msg,
Throwable cause)
Log a message at level ERROR to the default log, the service log and the trace, if trace is enabled. |
void |
traceOrDebug(Object msg)
Log a message to the default log at level DEBUG and and to the trace log at level INFO if trace is enabled for the mediator. |
void |
traceOrDebugWarn(Object msg)
Log a message at level WARN to the default log, if level DEBUG is enabled, and to the trace log, if trace is enabled for the mediator. |
void |
traceTrace(Object msg)
Log a message to the trace log at level TRACE if trace is enabled for the mediator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediatorLog(org.apache.commons.logging.Log defaultLog,
boolean traceOn,
MessageContext synCtx)
| Method Detail |
|---|
public boolean isTraceOrDebugEnabled()
SynapseLogSynapseLog.traceOrDebug(Object) would actually cause a log
message to be written to the logs.
isTraceOrDebugEnabled in interface SynapseLogtrue if trace or debug is enabledpublic void traceOrDebug(Object msg)
traceOrDebug in interface SynapseLogmsg - the message to be loggedpublic void traceOrDebugWarn(Object msg)
traceOrDebugWarn in interface SynapseLogmsg - the message to be loggedpublic boolean isTraceTraceEnabled()
SynapseLogSynapseLog.traceTrace(Object) would actually cause a log
message to be written to the logs.
isTraceTraceEnabled in interface SynapseLogtrue if trace is enabled for the trace logpublic void traceTrace(Object msg)
traceTrace in interface SynapseLogmsg - the message to be loggedpublic void auditLog(Object msg)
auditLog in interface SynapseLogmsg - the message to be loggedpublic void auditDebug(Object msg)
auditDebug in interface SynapseLogmsg - the message to be loggedpublic void auditTrace(Object msg)
auditTrace in interface SynapseLogmsg - the message to be loggedpublic void auditWarn(Object msg)
auditWarn in interface SynapseLogmsg - the message to be loggedpublic void auditError(Object msg)
auditError in interface SynapseLogmsg - the message to be loggedpublic void auditFatal(Object msg)
auditFatal in interface SynapseLogmsg - the message to be loggedpublic void error(Object msg)
error in interface SynapseLogmsg - the message to be logged
public void logSynapseException(String msg,
Throwable cause)
logSynapseException in interface SynapseLogmsg - the message of the exceptioncause - the cause of the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||