Is it possible to disable required middleware strapi::errors?

No, I want to disable the logging of the error in the strapi::errors middleware as I have my own custom error logging middleware. I’m already using a custom logger.
So not disabling the errors but just the strapi.log in the strapi:errors middleware or a way to overwrite the required middleware so I can use the same code except for the line that adds the strapi.log.error