mysql – How to create a user activity LOG in JAVA?

Hello, good evening, dear computer friends, I have a problem and would be very grateful to have a hand. The approach is as follows: I am currently developing a desktop application in JAVA. Yesterday I thought about adding something to the system. I decided to create a kind of "log" or "log" of the activities that JAVA is running to make sure that the user has made changes (for better or for worse), system users have found information about Log4J on the web, but it does not seem to be what I need. I would be more than grateful to everyone for the help they can give me, but I make an effort before I can go to the community for a single hand. Thank you all for taking your time and thank you for sharing your knowledge with everyone! greetings