[slf4j-user] unsubscribe

2009-11-02 Thread Michael Grundvig
unsubscribe -Original Message- From: user-boun...@slf4j.org [mailto:user-boun...@slf4j.org] On Behalf Of Ceki Gulcu Sent: Monday, November 02, 2009 1:12 PM To: User list for the slf4j project Subject: Re: [slf4j-user] Mix final non-static logger with a kind of SingletonLoggerFactory He

Re: [slf4j-user] Mix final non-static logger with a kind of SingletonLoggerFactory

2009-11-02 Thread Ceki Gulcu
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] http://logback.qos.ch/manual/lo

Re: [slf4j-user] Mix final non-static logger with a kind of SingletonLoggerFactory

2009-11-02 Thread Chad La Joie
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 ha

[slf4j-user] Mix final non-static logger with a kind of SingletonLoggerFactory

2009-11-02 Thread Florian Huonder
Hi all, I have a little question how to use slf4j correctly. We use SLF4J as logging frontend in a framework. There are lots of classes that contain business logic. These classes are initialized once. Here we have the following signature for the loggers "private final Logger logger = Log