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
[15:04:24 WARN]: SLF4J: No SLF4J providers were found.
[15:04:24 WARN]: SLF4J: Defaulting to no-operation (NOP) logger implementation
[15:04:24 WARN]: SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
[15:04:24 WARN]: SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
[15:04:24 WARN]: SLF4J: Ignoring binding found at [jar:file:/path/to/jar!/path/in/jar/lib/slf4j/impl/StaticLoggerBinder.class]
[15:04:24 WARN]: SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.
Newer SLF4J versions, while officially still in beta, are required for compatibility with newer JDK versions. For example, modern Jetty versions use JLF4J 2.0.0-alpha
The text was updated successfully, but these errors were encountered:
Ok, I finally figured it out. What I needed to do to get slf4j-simple working on bukkit (with relocations):
exclude org/slf4j/LoggerFactory.class from slf4j-api and the file in META-INF/services from slf4j-simple to avoid conflicts
relocate both
create my own LoggerFactory file which has this line modified with a second parameter: the plugin's classloader
create resource META-INF/services/my.plugin.lib.sjf4j.spi.SLF4JServiceProvider with contents my.plugin.lib.slf4j.simple.SimpleServiceProvider
These steps should mostly apply to your slf4j implementation as well, but I have spent too much time looking at loggers for now and went with slf4j-simple.
Newer SLF4J versions, while officially still in beta, are required for compatibility with newer JDK versions. For example, modern Jetty versions use JLF4J 2.0.0-alpha
The text was updated successfully, but these errors were encountered: