You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ceki Gulcu <ce...@qos.ch> on 2008/12/01 14:07:40 UTC
Re: Repository selectors, useful?
Jacob Kjome wrote:
> How so? Of course the libraries must use non-static loggers, but what else
> prevents shared libraries from participating in a logger context where the logging
> implementation exists in the same (or parent) classloader?
Most libraries use static loggers. It would be nice if they used non-static
loggers but they don't. When loggers are non-static, then loggers need to be
serializable which is not the case in all frameworks, e.g. log4j.
My main point is that repository selectors offer a fragile solution to a very
complex problem. Today, many applications embed a copy of the logging framework
of their choice, which seems to work overall. IMHO, using repository selectors
requires too much expertise.
> You still haven't detailed your alternative solution the logger separation
> problem. If you have one, please detail. Saying over and over that there other
> other ways to separate application logging without the repository selector
> concept, but never describing what they are, is not particularily convincing. If
> there really are alternate, and better, ways of separating logging I'm prepared to
> drop repository selectors in a heartbeat. But forgive me if I remain skeptical.
Skeptical is OK. The approach has been fleetingly mentioned on the logback-user
mailing list in the "Context selectors useful?" thread [1]. However, I'll let
you know when we have a concrete solution.
[1] http://www.qos.ch/pipermail/logback-user/2008-November/date.html
> Jake
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org