It Isnt Working! - Implement a Root-Level Request Logger Middleware

It Isnt Working! - Implement a Root-Level Request Logger Middleware
0

#1

I can’t understand why is this not working!
help please

app.use(function(req, res, next){
  console.log("req.method+’ ‘+req.path+’-’+req.ip");
  next();
})

FCC says “root-level logger is not working as expected”
link to the challenge:
https://learn.freecodecamp.org/apis-and-microservices/basic-node-and-express/implement-a-root-level-request-logger-middleware


#2

Just out of curiosity, why did you put your req in the console.log using string quotes?