** Root-level logger middleware should be active**
I don’t know why my tests not working
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge:
fixed my previous code was
app.use(function(req,res,next){
console.log(req.method+" "+req.path+"-"+req.ip)
next();
})
Fixed with
app.use(function(req,res,next){
console.log(req.method+" "+req.path+"-"+req.ip)
next();
})```