Root-Level Request Logger Middleware: I thought my code should work

Need some help on this step: I have looked into related topics on the forum and this is the best solution I can get but still I kept getting the “root-level logger is not working as expected” error.


Name of the exercise?


Basic Node and Express - Implement a Root-Level Request Logger Middleware

Thanks @shimphillip for your reply.

console.log(req.method+' '+req.path+'-'+req.ip)

You should have a space on either side of the dash between path and ip.

Thank you so much @chuckadams! The devil is in the details … Lesson learned.