[logback-user] Context selectors useful?

Mense, Holger holger.mense at wincor-nixdorf.com
Wed Nov 26 15:12:36 CET 2008


Hello,

> I am in the process of fixing bugs related to context selectors in
logback. 
> However, while sometime ago I thought that context selectors were the
wave of 
> the future, I am increasingly skeptical about their usefulness (of
context 
> selectors).

> If you are using context selectors, could you please explain why?

I am developing a multi threaded application, which can be executed all 
together in one JVM or in several JVMs. In order to have the possibility
of 
different logback configurations and the same log behaviour in different
runtime environments I am using my own ContextSelector, which 
decides on behalf of the source thread, where the log request comes
from, 
which LoggerContext should be used for the log event.

So I would not like to see ContextSelector support gone in SLF4J or
Logback.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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