|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SynapseLog
Synapse logging interface. This interface defines a set of Synapse specific log levels.
Note that the definition of this interface is not yet stable. Please refer to https://issues.apache.org/jira/browse/SYNAPSE-374 for more information.
AbstractMediator.getLog(org.apache.synapse.MessageContext)
Method Summary | |
---|---|
void |
auditDebug(Object msg)
Log an audit message at the TRACE category. |
void |
auditError(Object msg)
Log an audit message at the ERROR category. |
void |
auditFatal(Object msg)
Log an audit message at the FATAL category. |
void |
auditLog(Object msg)
Log an audit message. |
void |
auditTrace(Object msg)
Log an audit message at the TRACE category. |
void |
auditWarn(Object msg)
Log a warning message. |
void |
error(Object msg)
Log a message at level 'error'. |
boolean |
isTraceOrDebugEnabled()
Check whether a call to traceOrDebug(Object) would actually cause a log
message to be written to the logs. |
boolean |
isTraceTraceEnabled()
Check whether a call to traceTrace(Object) would actually cause a log
message to be written to the logs. |
void |
logSynapseException(String msg,
Throwable cause)
Log a fatal exception. |
void |
traceOrDebug(Object msg)
Log a message at level 'traceOrDebug'. |
void |
traceOrDebugWarn(Object msg)
Log a message at level 'traceOrDebugWarn'. |
void |
traceTrace(Object msg)
Log a message at level 'traceTrace'. |
Method Detail |
---|
boolean isTraceOrDebugEnabled()
traceOrDebug(Object)
would actually cause a log
message to be written to the logs.
true
if trace or debug is enabledvoid traceOrDebug(Object msg)
if (traceOrDebugOn) { traceOrDebug(traceOn, ...); }
msg
- the message to be loggedvoid traceOrDebugWarn(Object msg)
if (traceOrDebugOn) { traceOrDebugWarn(...); }
msg
- the message to be loggedboolean isTraceTraceEnabled()
traceTrace(Object)
would actually cause a log
message to be written to the logs.
true
if trace is enabled for the trace logvoid traceTrace(Object msg)
if (traceOn && trace.isTraceEnabled()) { trace.trace(...); }
msg
- the message to be loggedvoid auditLog(Object msg)
AbstractMediator.auditLog(String, MessageContext)
.
msg
- the message to be loggedvoid auditDebug(Object msg)
msg
- the message to be loggedvoid auditTrace(Object msg)
msg
- the message to be loggedvoid auditWarn(Object msg)
AbstractMediator.auditWarn(String, MessageContext)
.
msg
- the message to be loggedvoid auditError(Object msg)
msg
- the message to be loggedvoid auditFatal(Object msg)
msg
- the message to be loggedvoid error(Object msg)
msg
- the message to be loggedvoid logSynapseException(String msg, Throwable cause)
SynapseException
is being thrown.
msg
- 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 |