At 13:16 07.08.2001 -0400, [EMAIL PROTECTED] wrote:

>Ceki,
>
>     Thanks, will I be able to use it like I've shown below? What is an
>example? Will it be serializable as well?

I can't tell you the exact form under which the MDC will be available. However, it 
will be serializable. Ceki

>Thanks,
> - Tim
>____________________________________________________
>Timothy G. Mullé
>Senior Software Architect
>Reuters Valley Forge Solutions Center
>1000 Madison Avenue
>Norristown, PA 19403-2432
>
>Phone: (610) 650-8600 x8340
>Fax:      (610) 650-8170
>
>
>                                                                                      
>                                          
>                    Ceki Gülcü                                                        
>                                          
>                    <[EMAIL PROTECTED]>         To:     "LOG4J Users Mailing List" 
><[EMAIL PROTECTED]>                     
>                                         cc:                                          
>                                          
>                    08/07/2001           Subject:     Re: Accessing MDC data in 
>Appenders?                                      
>                    01:08 PM                                                          
>                                          
>                    Please                                                            
>                                          
>                    respond to                                                        
>                                          
>                    "LOG4J Users                                                      
>                                          
>                    Mailing List"                                                     
>                                          
>                                                                                      
>                                          
>                                                                                      
>                                          
>
>
>
>
>
>Tim,
>
>It will be a standard field LoggingEvent in the next few days. Regards,
>Ceki
>
>At 12:19 07.08.2001 -0400, you wrote:
>>Everyone,
>>
>>     Are MDC's associated or stored with LoggingEvents? I need to create a
>>custom appender and I was hoping I could do the following:
>>
>>// Set some custom fields to log
>>MDC.put("user", "joe");
>>MDC.put("id", "123");
>>
>>cat.debug("User info: ");
>>
>>
>>// In custom appender class..bogus code for now..just an example
>>
>>append(LoggingEvent evt) {
>>
>>     System.out.println("user: " + evt.getMDC().get("user"));
>>     System.out.println("id: " + evt.getMDC().get("id"));
>>
>>}
>>
>>Is this possible? Or do I have still have to create custom LoggingEvent
>>class that have the fields I want?
>>
>>Thanks,
>>- Tim
>>
>>____________________________________________________
>>Timothy G. Mullé
>>Senior Software Architect
>>Reuters Valley Forge Solutions Center
>>1000 Madison Avenue
>>Norristown, PA 19403-2432
>>
>>Phone: (610) 650-8600 x8340
>>Fax:      (610) 650-8170
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>--
>Ceki Gülcü - http://qos.ch
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>r
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
Ceki Gülcü - http://qos.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to