Access Log Purge Starter

Access log purge configuration for Tomcat and Undertow web servers supported by Spring Boot

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.marcosbarbero.boot
ArtifactId

ArtifactId

spring-boot-starter-purge-accesslog
Last Version

Last Version

2.0.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Access Log Purge Starter
Access log purge configuration for Tomcat and Undertow web servers supported by Spring Boot
Project URL

Project URL

https://github.com/marcosbarbero/spring-boot-starter-purge-accesslog
Source Code Management

Source Code Management

https://github.com/marcosbarbero/spring-boot-starter-purge-accesslog

Download spring-boot-starter-purge-accesslog

How to add to project

<!-- https://jarcasting.com/artifacts/com.marcosbarbero.boot/spring-boot-starter-purge-accesslog/ -->
<dependency>
    <groupId>com.marcosbarbero.boot</groupId>
    <artifactId>spring-boot-starter-purge-accesslog</artifactId>
    <version>2.0.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.marcosbarbero.boot/spring-boot-starter-purge-accesslog/
implementation 'com.marcosbarbero.boot:spring-boot-starter-purge-accesslog:2.0.0.RELEASE'
// https://jarcasting.com/artifacts/com.marcosbarbero.boot/spring-boot-starter-purge-accesslog/
implementation ("com.marcosbarbero.boot:spring-boot-starter-purge-accesslog:2.0.0.RELEASE")
'com.marcosbarbero.boot:spring-boot-starter-purge-accesslog:jar:2.0.0.RELEASE'
<dependency org="com.marcosbarbero.boot" name="spring-boot-starter-purge-accesslog" rev="2.0.0.RELEASE">
  <artifact name="spring-boot-starter-purge-accesslog" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.marcosbarbero.boot', module='spring-boot-starter-purge-accesslog', version='2.0.0.RELEASE')
)
libraryDependencies += "com.marcosbarbero.boot" % "spring-boot-starter-purge-accesslog" % "2.0.0.RELEASE"
[com.marcosbarbero.boot/spring-boot-starter-purge-accesslog "2.0.0.RELEASE"]

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar
org.springframework.boot : spring-boot-configuration-processor Optional jar

provided (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-undertow Optional jar
org.springframework.boot : spring-boot-starter-tomcat Optional jar
org.projectlombok : lombok jar 1.16.20

test (1)

Group / Artifact Type Version
junit : junit jar

Project Modules

There are no modules declared in this project.

Purgeable AccessLog for Spring Boot applications Build Status Maven Central Coverage Status

Module to enable purge on access log files for spring-boot based applications.

Adding Project Lombok Agent

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.

Usage

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

Contributing

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.

Maintainers

The current maintainers (people who can merge pull requests) are:

Code of Conduct

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

Footnote

Any doubt open an issue.
Any fix send me a Pull Request.

Versions

Version
2.0.0.RELEASE
1.0.2.RELEASE
1.0.1.RELEASE
1.0.0.RELEASE