Module to enable purge on access log files for spring-boot based applications.
This project uses Project Lombok to generate getters and setters etc. Compiling from the command line this shouldn't cause any problems, but in an IDE you need to add an agent to the JVM. Full instructions can be found in the Lombok website. The sign that you need to do this is a lot of compiler errors to do with missing methods and fields.
This project is available on maven central
Add the dependency on pom.xml
<dependency>
<groupId>com.marcosbarbero.boot</groupId>
<artifactId>spring-boot-starter-purge-accesslog</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
Sample configuration
server:
accesslog.purge:
enabled: true #default false
execute-on-startup: true #default false
execution-interval: 10 #default 24
execution-interval-unit: SECONDS #default HOURS
max-history: 1 #default 30
max-history-unit: MINUTES #default DAYS
Spring Boot Purge AccessLog is released under the non-restrictive Apache 2.0 license, and follows a very standard Github development process, using Github tracker for issues and merging pull requests into master. If you want to contribute even something trivial please do not hesitate, but follow the guidelines below.
The current maintainers (people who can merge pull requests) are:
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].
Any doubt open an issue.
Any fix send me a Pull Request.