[logback-user] Context selectors useful?
Mense, Holger
holger.mense at wincor-nixdorf.com
Thu Nov 27 10:57:18 CET 2008
Hello Ceki,
[Usage of context selector in multi threaded environments]
> Assuming a new appender, say MultiAppender, was capable of embedding
> and managing other appenders per thread basis, you would no longer
> need context selectors. More importantly, most of the work would be
> done by MultiAppender. You would only need to configure it in
> logback.xml and push MDC values at the beginning of each thread. (I am
> making the assumption that the MDC can be used to distinguish
> threads.)
Yes, currently my context selector relies on MDC. I think your
suggested MultiAppender would also solve my problem for now. However
with the context selector I am currently more flexible on deciding
at one central point, to which LoggerContext I need to pass a log event.
Furthermore it is currently possible for me to distinguish different
logback configuration files for different thread classes. This allows a
far more fine-grained configuration.
> Needless to say, there is no intention of removing support for context
> selectors.
Okay. That's good :)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Holger Mense Wincor Nixdorf International GmbH
Banking Division Product Development (PSD5)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--
WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193
Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the Logback-user
mailing list