Closed rfscholte closed 3 months ago
I suspect that following version of slf4j-simple/.../java9/module-info.java will solve the issue
module org.slf4j.simple {
requires org.slf4j;
exports org.slf4j.simple; // addition
provides org.slf4j.spi.SLF4JServiceProvider with org.slf4j.simple.SimpleServiceProvider;
opens org.slf4j.simple to org.slf4j; // addition
}
that will work, but that means that every ServiceProvider must do so. The provides
hands it over to the JRE, which has always access to the providers.
If you want to first initialize it based on the system property, you might not directly want to fail, but give it another try via the provider and check if there's a matching provider.
@rfscholte The rationale here is that if the provider is specified explicitly, it must be known to work.
Anyway, commit da91e4f2198e49121e308de5acca2fd2bbfbf452 should solve the problem. Please let me know if this solves the problem. I intend to cut a release shortly.
solution confirmed
it looks like it is trying to create e new instance based on this property. I guess it would be better to loop over the providers and check if there is a matching instance.