Class LogMediator

  • All Implemented Interfaces:
    AspectConfigurable, Mediator, SynapseArtifact

    public class LogMediator
    extends AbstractMediator
    Logs the specified message into the configured logger. The log levels specify which attributes would be logged, and is configurable. Additionally custom properties may be defined to the logger, where literal values or expressions could be specified for logging. The custom properties are printed into the log using the defined separator (\n, "," etc)
    • Constructor Detail

      • LogMediator

        public LogMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Logs the current message according to the supplied semantics
        Parameters:
        synCtx - (current) message to be logged
        Returns:
        true always
      • getLogLevel

        public int getLogLevel()
      • setLogLevel

        public void setLogLevel​(int logLevel)
      • getSeparator

        public String getSeparator()
      • setSeparator

        public void setSeparator​(String separator)
      • getCategory

        public int getCategory()
      • setCategory

        public void setCategory​(int category)