How to enable the history log function?

I want to get the flowable log information, but it doesn’t seem to be turned on. What I learned online

Add the above code to the project, I added this code to the configuration class of the flowable-task project, and it runs successfully, but the database’s log table act_evt_log has no information.

Ask for advice!

How did you add this to flowable-task? Flowable task uses Spring Boot behind the scene, the above doesn’t look like it would work in this environment?