Responses to the discussion on Github
guillermodoghel139d ago
Bump!
same question here!
Im trying to override the core logger middleware in order to do some custom format to get some tags in graylog
Running strapi 3.1.3
derrickmehaffy138d ago
Collaborator
Hello @negati-ve @guillermodoghel
Currently it is not possible to override a default middleware coming from the core packages. In this case you will need to disable the core middleware in the ./config/middleware.js using something like this:
module.exports = { settings: { responseTime: { enabled: false }, responseTimeNew: { enabled: true } } }
And create a new middleware with a different name in the ./middlewares folder and enable that.
guillermodoghel138d ago
that worked
thanks!!