Hey Florian,
I believe SLF4j does logger object caching, so that when you call
LoggerFactory.getLogger(MyClass.class) it will produce a logger object
once, cache it, and return it for each additional call.
Ceki can correct me if I'm wrong about this.
Florian Huonder wrote:
Hi all,
I
Hello Florian,
You probably don't have 10'000 classes but 10'000 *instances* of a class or a
few classes.
Anyway, you don't have to through a factory because the SLF4J factory will
always return the same instance. Do read [1] for more info on this topic.
[1]