User Activity Logs

#1

Hi folks,

I want to save user each and every activity like, user old value and new value, Ip address, user_id, user_agent etc on every request. Is there any package for adonisjs? Or how I will achieve this?

Thanks
Regards,

0 Likes

#2

I think you can add a custom middleware to the routes
https://adonisjs.com/docs/4.1/middleware#_creating_middleware

0 Likes

#3

I was also thinking of middleware but can you write algorithim for it?

0 Likes

#4

I want this type of package http://laravel-auditing.com/ in adonisjs

0 Likes

#5

The middleware will allow you to log your data, once it is stored in your DB or file, then you can play any tune with it you want and you would be able to use any package in any language (Python, Node etc) to read that stored data do what every analysis you needed.

0 Likes