Dag
Dag

Reputation: 10539

Bridging from log4j2 to slf4j

I'm using Slf4j 1.7.x in conjunction with Logback in my applications (it is a Dropwizard-application). Now we have libraries that use the log4j2 (not log4j), and the logging goes to /dev/null. I can't find a logj2-over-slf4j or log4j2-to-slf4j library in any exising maven application, what is the trick?

Upvotes: 5

Views: 742

Answers (1)

Torsten
Torsten

Reputation: 6204

You may use the Log4j 2 to SLF4J Adapter to route your Log4j2 logs to your slf4j implementation. You are right that slf4j itself does not provide an adapter for log4j2.

Upvotes: 6

Related Questions