private void logMessage(LogPriority logPriority, String message) {
        switch (logPriority) {
            case INFO:
                log.info(message);
                break;
            case DEBUG:
                log.debug(message);
                break;
            case WARN:
                log.warn(message);
                break;
            case FATAL:
                log.fatal(message);
                break;
            case ERROR:
                log.error(message);
                break;
            case OFF:
                break;
            case TRACE:
                log.trace(message);
                break;
        }
    }
The init method of the StreamFunction

@param metaStreamEvent              the  stream event meta
@param inputDefinition              the incoming stream definition
@param attributeExpressionExecutors the executors for the function parameters
@param configReader                 this hold the {@link LogStreamProcessor} configuration reader.
@param streamEventClonerHolder      streamEventCloner Holder
@param findToBeExecuted             find will be executed
@param siddhiQueryContext           current siddhi query context
@return the additional output attributes introduced by the function
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/LogStreamProcessor.java