const myLogger = function (req, res, next) {
  console.log('LOGGED')
  next()
}
app.use(myLogger)
// or for other route files -> router.use(myLogger);