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:
gradle dependencies gradle build --warning-mode all jar tf build/libs/example-1.0.0.jarExecute:
rm -rf logs 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