How to print Client IP Address/request ip, request body and user-agent in Strapi v4 logs

System Information
  • Strapi Version: 4.1.8
  • Operating System: Unix
  • Database: Mysql
  • Node Version: >=12 and <=16
  • NPM Version: >=6

This is in regards to the Question posted on stackoverflow w.r.t logging in strapi v4.1.8