akkinoc / logback-access-spring-boot-starter

Spring Boot Starter for Logback-access.
Apache License 2.0
194 stars 33 forks source link

support slf4j (log4j2) #123

Open rr-nick-tan opened 2 years ago

rr-nick-tan commented 2 years ago

Describe the problem you'd like to have solved

our apps use slf4j as facade api, and log4j2 as the implementation. however, to enable accesslog in springboot, we have to introduce logback which causes the conflicts by slf4j binding the wrong implementation. because the both slf4j api implementation are on the JVM classpath

Describe the solution you'd like

i'd like to have the option to select the access log implementation, either log4j2 or logback

akkinoc commented 2 years ago

Thank you for your suggestion.

I will consider whether it can support log4j2, but it may be difficult. (Because Logback Access depends on Logback.)

rzanner commented 1 year ago

any progress or a solution for this issue?

akkinoc commented 1 year ago

Sorry, I don't have a solution for now. If you have a good solution, I would appreciate it if you could suggest it.