title: How do I log every db change using Spring Boot in a file?
body: <p>I need to log every database change to a file. And I need to show how data looked before and how data looked after. <br> 
  For example, if I change person`s name it would be ok if following line was appended to my log file: "<em>updated person table: field 'first_name' was changed from 'Alex' to 'George' (person_id = 4622)</em>". <br>
  And if I insert new person: "<em>inserted to person table: 'person_id' = 4623; 'last_name' = 'Smith'; 'first_name' = 'John'; 'status' = 0</em>". <br><br>
  I make changes to db with services that use interfaces that extend JpaRepository and theoretically I could add code to append log file to every method of every service. But that's a lot of code, such approach does not follow DRY principles and I believe there should be better solution I haven't found yet. What should I use to achieve this?<br><br>
  I use Spring Boot version 2.0.3.RELEASE and my database is MariaDB.<br>
  Log file can have any format, but, I guess, the best would be yaml.</p>