Transformation and Routing in TYK

Regarding Tyk log, do you mean gateway log. On the gateway log, there is only one error which is- “failed to run JS middleware”. Or is there any other log asides the gateway log. Also is it that I need to instantiate the JS middleware in the javascript code embedded in the virtual plugin. Kindly assist.