Tell us what’s happening:
Hi,
I am on task 7 which is the Implement a Root-Level Request Logger Middleware and I can’t pass the test.
Here is my code
app.use((req, res, next) => {
const reqstring= `${req.method} ${req.path} - ${req.ip}`;
console.log(reqstring);
next();
});
I’m using replit for this test.
Your project link(s)
solution: https://replit.com/@jkevinturado/boilerplate-express-1
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge: