Auto-Configuration
Zero-configuration setup for Tomcat and Jetty embedded servers. Add the dependency and start logging.
Auto-configuration for Logback Access with Tomcat and Jetty support
Add the dependency to your project:
Replace
VERSIONwith the latest version from Maven Central.
implementation("io.github.seijikohara:logback-access-spring-boot-starter:VERSION")implementation 'io.github.seijikohara:logback-access-spring-boot-starter:VERSION'<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 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.
| Component | Version |
|---|---|
| Java | 21+ |
| Spring Boot | 4.0+ |
This project is licensed under the Apache License 2.0.