Monitor user activity (log)

I would like to make an activity log that records e.g. when users access the application. It would be fine just to update a text file with e.g. timestamp and username. Is there a way to do this?

3 Likes