Customize Log4j 2 SLF4J Binding #1807
Unanswered
originalrusyn
asked this question in
Q&A
Replies: 1 comment
-
In SLF4J 2.0.9 Ceki introduced a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I would like to create custom Logger based on Log4j 2 SLF4J Binding to apply it globally instead of Log4j 2 SLF4J Binding in my app.
So, I've created decorators by implement
org.slf4j.Logger
org.slf4j.ILoggerFactory
org.slf4j.spi.SLF4JServiceProvider
interfaces for corresponded classes of https://github.com/apache/logging-log4j2/tree/2.x/log4j-slf4j2-impl
But I can't use my implementation because slf4j2 expects single SLF4JServiceProvider only https://github.com/qos-ch/slf4j/blob/7c164fab8d54f823dd55c01a5a839c153f578297/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java#L399
So, is it possible to make Log4j 2 SLF4J Binding to be customizable?
Beta Was this translation helpful? Give feedback.
All reactions