private void logMessage(LogSink.LogPriority logPriority, String message) {
        switch (logPriority) {
            case INFO:
                logger.info(message);
                break;
            case DEBUG:
                logger.debug(message);
                break;
            case WARN:
                logger.warn(message);
                break;
            case FATAL:
                logger.fatal(message);
                break;
            case ERROR:
                logger.error(message);
                break;
            case OFF:
                break;
            case TRACE:
                logger.trace(message);
                break;
        }
    }
Implementation of {@link Sink} which can be used as a logger. This will log the output events in the output stream
with user specified priority and a prefix
modules/siddhi-core/src/main/java/io/siddhi/core/stream/output/sink/LogSink.java