The RFC Gateway logging feature is explained in the SAP note 2527689 - GW: Setting up gateway logging (new). It is automatically enables in the Netweaver systems. To disable this feature it is possible to set the parameter gw/logging without value in profile and restart the system:
"gw/logging = "
Another possible way is using the SMGW transaction, removing all settings and remove file name.