modules/ballerina-native/src/main/java/org/ballerinalang/nativeimpl/lang/system/LogUtil.java
/**
     * Log given value in specified log level using provided logger instance.
     *
     * @param logger   Log instance
     * @param logLevel log level whether debug, info etc
     * @param value    String value that need to log
     */
Log given value in specified log level using provided logger instance.
@param logger   Log instance
@param logLevel log level whether debug, info etc
@param value    String value that need to log
Log given value in specified log level using provided logger instance . @param logger Log instance @param logLevel log level whether debug info etc @param value String value that need to log
public static void log(Logger logger, int logLevel, String value) {
        switch (logLevel) {
        case 1:
            logTrace(logger, value);
            break;
        case 2:
            logDebug(logger, value);
            break;
        case 3:
            logInfo(logger, value);
            break;
        case 4:
            logWarn(logger, value);
            break;
        case 5:
            logError(logger, value);
            break;
        default:
        }
    }
public static void log ( Logger logger , int logLevel , String value ) { switch ( logLevel ) { case 1 : logTrace ( logger , value ) ; break ; case 2 : logDebug ( logger , value ) ; break ; case 3 : logInfo ( logger , value ) ; break ; case 4 : logWarn ( logger , value ) ; break ; case 5 : logError ( logger , value ) ; break ; default : } }
Log given value in specified log level using provided logger instance.
Log given value in specified log level using provided logger instance .