Skip to content

rgl/log4j2-file-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a log4j2 file logging example.

Usage

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.jar

Execute:

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

Releases

No releases published

Packages

No packages published