Root level logger middleware should be active error in replit

app.use(function(req, res, next){
  console.log(req.method+' '+req.path+'-'+req.ip)
  next()

})