Implement a root level Request logger middleware: not passing tests[Found solution😊]

Tell us what’s happening:
i have been working on the function and i have done exactly as it should be but it just isn’t passing the tests. The code only logged undefined undefined - undefined instead of method path - ip. Some one kindly help me please.
this is the link to my glitch https://fortune-thread-collar.glitch.me/

Your code so far
app.use((res, req, next) => { console.log(req.method + " " + req.path + " - " + req.ip); next(); });

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: undefined

Link to the challenge: