Skip to content

wuxiaochun1981/spring-boot-ext-logback-access

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-ext-logback-access

Spring Boot Extension: Logback-access Auto Configuration.

Status

Maven Central Circle CI

Supported servlet containers

  • Embedded Tomcat
  • Embedded Jetty

Usage

Maven dependency:

<dependency>
    <groupId>net.rakugakibox.springbootext</groupId>
    <artifactId>spring-boot-ext-logback-access</artifactId>
    <version>1.0</version>
</dependency>

Configuration properties (application.yml):

logback.access:
  config: "classpath:your-logback-access.xml"
    # Auto-detected by default.
    #   => "classpath:logback-access-test.xml"
    #   => "classpath:logback-access.xml"
    #   => "classpath:net/rakugakibox/springbootext/logback/access/logback-access.xml"

Logback-access configuration example (logback-access.xml)

<configuration>
    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>common</pattern>
        </encoder>
    </appender>
    <appender-ref ref="CONSOLE" />
</configuration>

See Also: HTTP-access logs with logback-access, Jetty and Tomcat - Logback-access

License

Licensed under the Apache License, Version 2.0.

About

Spring Boot Extension: Logback-access Auto Configuration.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.9%
  • HTML 3.1%