Skip to content

logback-access-spring-boot-starterHTTP Access Logging for Spring Boot

Auto-configuration for Logback Access with Tomcat and Jetty support

logback-access-spring-boot-starter

Architecture

Quick Start

Add the dependency to your project:

Replace VERSION with the latest version from Maven Central.

kotlin
implementation("io.github.seijikohara:logback-access-spring-boot-starter:VERSION")
groovy
implementation 'io.github.seijikohara:logback-access-spring-boot-starter:VERSION'
xml
<dependency>
    <groupId>io.github.seijikohara</groupId>
    <artifactId>logback-access-spring-boot-starter</artifactId>
    <version>VERSION</version>
</dependency>

Create src/main/resources/logback-access.xml:

xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%h %l %u [%t] "%r" %s %b</pattern>
        </encoder>
    </appender>
    <appender-ref ref="console"/>
</configuration>

Start your application and access logs will appear in the console.

Requirements

ComponentVersion
Java21+
Spring Boot4.0+

License

This project is licensed under the Apache License 2.0.

Released under the Apache 2.0 License.