How to override strapi.log.error

I would like to know if it is possible to override the method so that when called it writes my logs in another database. I’m using strapi with mariadb as the main database, but in the case of the logs I would like to send them to a mongoDB. Has anyone done something similar or know if it is possible to overwrite the default logger?

System Information
  • Strapi Version: Last
  • Operating System: MacOS
  • Database: MariaDB
  • Node Version: 14
  • NPM Version: Last