You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using BIRT Runtime 4.13 in a Java Web Application which is built and managed with gradle. I want to integrate Java Util Logging as well as Log4J via SLF4J. Therefore, I add dependencies to my project:
// parts of birt runtime run with java util logging
api "org.slf4j:jul-to-slf4j:${slf4jBridgeVersion}"
// log4j2 in my app
api "org.apache.logging.log4j:log4j-api:${log4jVersion}"
api "org.apache.logging.log4j:log4j-core:${log4jVersion}"
// bind slf4j to log4j2
api "org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}"
For correct usage of JUL, I added this to my Java code: SLF4JBridgeHandler.install()
However, I receive a "Multiple SLF4J bindings" error at runtime:
[err] SLF4J: Class path contains multiple SLF4J bindings.
[err] SLF4J: Found binding in [wsjar:file:/C:/Users/***/.gradle/caches/modules-2/files-2.1/org.eclipse.birt.runtime/org.eclipse.birt.runtime/4.13.0/***/org.eclipse.birt.runtime-4.13.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[err] SLF4J: Found binding in [wsjar:file:/C:/Users/***/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-slf4j-impl/2.20.0/***/log4j-slf4j-impl-2.20.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
I think it might be a problem that BIRT Runtime has integrated SLF4J code directly in its source code.
How can I resolve this?
The text was updated successfully, but these errors were encountered:
I'm using BIRT Runtime 4.13 in a Java Web Application which is built and managed with gradle. I want to integrate Java Util Logging as well as Log4J via SLF4J. Therefore, I add dependencies to my project:
For correct usage of JUL, I added this to my Java code:
SLF4JBridgeHandler.install()
However, I receive a "Multiple SLF4J bindings" error at runtime:
I think it might be a problem that BIRT Runtime has integrated SLF4J code directly in its source code.
How can I resolve this?
The text was updated successfully, but these errors were encountered: