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 Herve AGNOUX <he...@diaam-informatique.com> on 2002/10/15 00:36:14 UTC

MDC the winner, but...

Hello,

MDC is OK in a server context.

But now I try to use it in a GUI.

I have two (or more...) windows, for two clients, on the same PC, in the same 
JVM. 

When I receive a mouse-click, when a window is resized, closed, has focus and 
so on, I should want some log like that :

[ It's window 1 ] : mouse !

[ It's window 2 ] : key !

... and so on.

Perhaps, with planty of courage, I can put on every method of every listener 
the couple MDC.put / MDC.remove.

But Log4j is so wonderful that I am sure there is a fantastic method to do 
that very easily. 

Thanks in advance to say which !

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>