public interface SynapseLog
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.
Modifier and Type | Method and Description |
---|---|
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'.
|
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 exceptionCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.