https://github.com/rgl/log4j2-file-logging
a log4j2 file logging example
https://github.com/rgl/log4j2-file-logging
example gradle log4j2 log4j2-example
Last synced: 10 months ago
JSON representation
a log4j2 file logging example
- Host: GitHub
- URL: https://github.com/rgl/log4j2-file-logging
- Owner: rgl
- Created: 2024-10-16T07:46:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T23:02:39.000Z (11 months ago)
- Last Synced: 2025-03-12T00:18:40.742Z (11 months ago)
- Topics: example, gradle, log4j2, log4j2-example
- Language: Java
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This is a log4j2 file logging example.
# Usage
Install the dependencies:
* [Visual Studio Code](https://code.visualstudio.com).
* [Dev Container plugin](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
Open this directory with the Dev Container plugin.
Open the Visual Studio Code Terminal.
Build:
```bash
gradle dependencies
gradle build --warning-mode all
jar tf build/libs/example-1.0.0.jar
```
Execute:
```bash
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
```