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(java.lang.Object msg)
Log an audit message at the TRACE category.
|
void |
auditError(java.lang.Object msg)
Log an audit message at the ERROR category.
|
void |
auditFatal(java.lang.Object msg)
Log an audit message at the FATAL category.
|
void |
auditLog(java.lang.Object msg)
Log an audit message.
|
void |
auditTrace(java.lang.Object msg)
Log an audit message at the TRACE category.
|
void |
auditWarn(java.lang.Object msg)
Log a warning message.
|
void |
error(java.lang.Object msg)
Log a message at level 'error'.
|
boolean |
isDebugEnabled()
Check whether a call to
#debug(Object) would actually cause a log
message to be written to the logs. |
boolean |
isTraceEnabled()
Check whether a call to
#trace(Object) would actually cause a log
message to be written to the logs. |
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(java.lang.String msg,
java.lang.Throwable cause)
Log a fatal exception.
|
void |
traceOrDebug(java.lang.Object msg)
Log a message at level 'traceOrDebug'.
|
void |
traceOrDebugWarn(java.lang.Object msg)
Log a message at level 'traceOrDebugWarn'.
|
void |
traceTrace(java.lang.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 enabledboolean isDebugEnabled()
#debug(Object)
would actually cause a log
message to be written to the logs.true
if trace or debug is enabledboolean isTraceEnabled()
#trace(Object)
would actually cause a log
message to be written to the logs.true
if trace or debug is enabledvoid traceOrDebug(java.lang.Object msg)
if (traceOrDebugOn) { traceOrDebug(traceOn, ...); }
msg
- the message to be loggedvoid traceOrDebugWarn(java.lang.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(java.lang.Object msg)
if (traceOn && trace.isTraceEnabled()) { trace.trace(...); }
msg
- the message to be loggedvoid auditLog(java.lang.Object msg)
AbstractMediator.auditLog(String, MessageContext)
.msg
- the message to be loggedvoid auditDebug(java.lang.Object msg)
msg
- the message to be loggedvoid auditTrace(java.lang.Object msg)
msg
- the message to be loggedvoid auditWarn(java.lang.Object msg)
AbstractMediator.auditWarn(String, MessageContext)
.msg
- the message to be loggedvoid auditError(java.lang.Object msg)
msg
- the message to be loggedvoid auditFatal(java.lang.Object msg)
msg
- the message to be loggedvoid error(java.lang.Object msg)
msg
- the message to be loggedvoid logSynapseException(java.lang.String msg, java.lang.Throwable cause)
SynapseException
is being thrown.msg
- the message of the exceptioncause
- the cause of the exceptionCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.