lib/core.js
function(options)
    {
      var logTag = options.logLevel;
      if (Util.exists(logTag))
      {
        // check that the specified value is a valid tag
        Errors.checkArgumentValid(LoggerCore.isValidLogTag(logTag),
            ErrorCodes.ERR_GLOGAL_CONFIGURE_INVALID_LOG_LEVEL);

        Logger.getInstance().configure(
        {
          level: LoggerCore.logTagToLevel(logTag)
        });
      }

      var insecureConnect = options.insecureConnect;
      if (Util.exists(insecureConnect))
      {
        // check that the specified value is a boolean
        Errors.checkArgumentValid(Util.isBoolean(insecureConnect),
            ErrorCodes.ERR_GLOBAL_CONFIGURE_INVALID_INSECURE_CONNECT);

        GlobalConfig.setInsecureConnect(insecureConnect);
      }
    }
function(options)
    {
      var logTag = options.logLevel;
      if (Util.exists(logTag))
      {
        // check that the specified value is a valid tag
        Errors.checkArgumentValid(LoggerCore.isValidLogTag(logTag),
            ErrorCodes.ERR_GLOGAL_CONFIGURE_INVALID_LOG_LEVEL);

        Logger.getInstance().configure(
        {
          level: LoggerCore.logTagToLevel(logTag)
        });
      }

      var insecureConnect = options.insecureConnect;
      if (Util.exists(insecureConnect))
      {
        // check that the specified value is a boolean
        Errors.checkArgumentValid(Util.isBoolean(insecureConnect),
            ErrorCodes.ERR_GLOBAL_CONFIGURE_INVALID_INSECURE_CONNECT);

        GlobalConfig.setInsecureConnect(insecureConnect);
      }
    }
function ( options ) { var logTag = options . logLevel ; if ( Util . exists ( logTag ) ) { // check that the specified value is a valid tag Errors . checkArgumentValid ( LoggerCore . isValidLogTag ( logTag ) , ErrorCodes . ERR_GLOGAL_CONFIGURE_INVALID_LOG_LEVEL ) ; Logger . getInstance ( ) . configure ( { level : LoggerCore . logTagToLevel ( logTag ) } ) ; } var insecureConnect = options . insecureConnect ; if ( Util . exists ( insecureConnect ) ) { // check that the specified value is a boolean Errors . checkArgumentValid ( Util . isBoolean ( insecureConnect ) , ErrorCodes . ERR_GLOBAL_CONFIGURE_INVALID_INSECURE_CONNECT ) ; GlobalConfig . setInsecureConnect ( insecureConnect ) ; } }
Configures this instance of the Snowflake core module.

@param {Object} options
Configures this instance of the Snowflake core module .