Syntax error on express app.use
<p>I have used this code with my node.js application with express but when uploading to Heroku I get an error when running.</p>

<pre><code>2016-09-28T11:01:40.502448+00:00 app[web.1]: /app/routes/index.js:146
2016-09-28T11:01:40.502467+00:00 app[web.1]: app.use(({method, url}, rsp, next) =&gt; {
2016-09-28T11:01:40.502468+00:00 app[web.1]:          ^
2016-09-28T11:01:40.502468+00:00 app[web.1]: 
2016-09-28T11:01:40.502469+00:00 app[web.1]: SyntaxError: Unexpected token {
2016-09-28T11:01:40.502469+00:00 app[web.1]:     at exports.runInThisContext (vm.js:53:16)
2016-09-28T11:01:40.502470+00:00 app[web.1]:     at Module._compile (module.js:387:25)
2016-09-28T11:01:40.502471+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:422:10)
2016-09-28T11:01:40.502471+00:00 app[web.1]:     at Module.load (module.js:357:32)
2016-09-28T11:01:40.502472+00:00 app[web.1]:     at Function.Module._load (module.js:314:12)
2016-09-28T11:01:40.502473+00:00 app[web.1]:     at Module.require (module.js:367:17)
2016-09-28T11:01:40.502473+00:00 app[web.1]:     at require (internal/module.js:20:19)
2016-09-28T11:01:40.502474+00:00 app[web.1]:     at Object.&lt;anonymous&gt; (/app/app.js:8:14)
2016-09-28T11:01:40.502474+00:00 app[web.1]:     at Module._compile (module.js:413:34)
2016-09-28T11:01:40.502475+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:422:10)
</code></pre>

<p>My code is</p>

<pre><code>app.use(({method, url}, rsp, next) =&gt; {
  rsp.on('finish', () =&gt; {
    console.log(`${rsp.statusCode} ${method} ${url}`);
  });
  next();
});
</code></pre>

<p>Any help would be much appreciated</p>