Tell us what’s happening:
Root level logger middleware should be active
Your code so far
app.use(function middleware(req, res, next) => {
console.log(req.method + " " + req.path + " - " + req.ip)
next();
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
.
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge: