Extending lifecycle hooks in menus plugin

System Information
  • Strapi Version: v4.6.0
  • Operating System: mac OS
  • Database: SQL
  • Node Version: v14.19.1
  • NPM Version:
  • Yarn Version:

I am implementing activity logs module. I want to log the activity of user in Menus plugin. For other collection type i am using lifecycle hooks. How can i use lifecycle hooks to log the user’s activity. I have created lifecycle.js file in my extension folder and imported it to server.js file. But in lifecycle.js file i am not able to console log the data.