Slf4j provides libraries to "fool" backend specific codebase into thinking specific backend exists while redirecting all the logging to one slf4j api compatible backend.
In short log4j-over-sl4j will redirect anything from log4j specific logging into slf4j.
So my classpath now has
slf4j-api
*-over-slf4j
slf4j-simple (to be removed)
I'm trying to provide custom logging backend for slf4j 1.8+ (please don't ask why). In order to get started with this i've copied over slf4j-simple into my project.
When slf4j-simple is added as a dependency logging happens as expected, but when i remove the dependency and simply keep the exact same content in my own codebase it will not pick it up (different package though)...
How can i make sl4j see my custom provider?
UPDATE
I can see that the jar has some extra information possibly what is being used by slf4j to choose the provider...
However in my case my logging backend is in my own codebase (i dont want to separate it into a library), so is there an api to set your provider to SLF4J?