Tell us what’s happening:
Can someone tell me where i am doing wrong?
app.use( function(req, res, next){
var s = req.method+" “+req.path+” - "+req.ip;
console.log(s);
next();
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Safari/537.36
.
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge: