This is a log4j2 file logging example.
Install the dependencies:
Open this directory with the Dev Container plugin.
Open the Visual Studio Code Terminal.
Build and execute the example:
rm -rf logs
gradle build --warning-mode all
gradle run
ll logs
# then execute gradle run several times, to see how it rotates the files.
# as configured, no more than 3 files per day will exist.
gradle run
ll logs