Class MediatorLog

    • Constructor Detail

      • MediatorLog

        public MediatorLog​(org.apache.commons.logging.Log defaultLog,
                           boolean traceOn,
                           MessageContext synCtx)
    • Method Detail

      • isDebugEnabled

        public boolean isDebugEnabled()
        Description copied from interface: SynapseLog
        Check whether a call to #debug(Object) would actually cause a log message to be written to the logs.
        Specified by:
        isDebugEnabled in interface SynapseLog
        Returns:
        true if trace or debug is enabled
      • isTraceEnabled

        public boolean isTraceEnabled()
        Description copied from interface: SynapseLog
        Check whether a call to #trace(Object) would actually cause a log message to be written to the logs.
        Specified by:
        isTraceEnabled in interface SynapseLog
        Returns:
        true if trace or debug is enabled
      • traceOrDebug

        public 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.
        Specified by:
        traceOrDebug in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • traceOrDebugWarn

        public 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.
        Specified by:
        traceOrDebugWarn in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • traceTrace

        public void traceTrace​(Object msg)
        Log a message to the trace log at level TRACE if trace is enabled for the mediator.
        Specified by:
        traceTrace in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • auditLog

        public void auditLog​(Object msg)
        Log a message at level INFO to all available/enabled logs.
        Specified by:
        auditLog in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • auditDebug

        public void auditDebug​(Object msg)
        Log a message at level DEBUG to all available/enabled logs.
        Specified by:
        auditDebug in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • auditTrace

        public void auditTrace​(Object msg)
        Log a message at level TRACE to all available/enabled logs.
        Specified by:
        auditTrace in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • auditWarn

        public void auditWarn​(Object msg)
        Log a message at level WARN to all available/enabled logs.
        Specified by:
        auditWarn in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • auditError

        public void auditError​(Object msg)
        Log a message at level ERROR to all available/enabled logs.
        Specified by:
        auditError in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • auditFatal

        public void auditFatal​(Object msg)
        Log a message at level FATAL to all available/enabled logs.
        Specified by:
        auditFatal in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • error

        public void error​(Object msg)
        Log a message at level ERROR to the default log and to the trace, if trace is enabled.
        Specified by:
        error in interface SynapseLog
        Parameters:
        msg - the message to be logged
      • logSynapseException

        public 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.
        Specified by:
        logSynapseException in interface SynapseLog
        Parameters:
        msg - the message of the exception
        cause - the cause of the exception