For the logging clients I set (in the Servlet Filter):
MDC.put("server", "stbManager");
NDC.push("server:stbManager");

If I check them, both of them arrives to console. But if I send them
to a logging server and save them into a logfile  -- and open it with
chainsaw...the fields will be:
NDC   server:stbManager
Properties    {{hostname,file}{application,/xml}{log4jid,1184}}

The field settings are:
<TR><TD><B>NDC</B><TD>%x</td></tr>
<TR><TD><B>Properties</B><TD>%properties</td></tr>

I tried to change %properties to %X but I get the same result.

So it seems that MDCs has lost somewhere.

Any tips?

Thanks:
  Bence


On 12/5/06, Scott Deboy <[EMAIL PROTECTED]> wrote:
Properties = MDC

Scott Deboy
Principal Engineer
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax: 503.222.0185
[EMAIL PROTECTED]
www.comotivsystems.com


-----Original Message-----
From: Bence Takács [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 05, 2006 10:39 AM
To: Log4J Users List
Subject: Re: NDC and MDC fileds with XML layout

Maybe it can..., but where? When I display a message I see only the
following ffileds:

Level
Logger
Time
Thread
Message
NDC
Class
Method
Line
File
Properties

Nothing about MDC. I use the Java Web Start link displayed in the
Chainsaw web site. It's version 2.

Thanks:
   Bence


On 12/5/06, Scott Deboy <[EMAIL PROTECTED]> wrote:
> Chainsaw can process regular text files (using LogFilePatternReceiver).
>
> Chainsaw can display MDC and NDC entries, regardless if the log file is in 
XMLLayout format or regular text format.
>
>
>
> Scott Deboy
> Principal Engineer
> COMOTIV SYSTEMS
> 111 SW Columbia Street Ste. 950
> Portland, OR  97201
> Telephone: 503.224.7496
> Cell: 503.997.1367
> Fax: 503.222.0185
> [EMAIL PROTECTED]
> www.comotivsystems.com
>
>
> -----Original Message-----
> From: Bence Takács [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 05, 2006 8:36 AM
> To: Log4J Users List
> Subject: Re: NDC and MDC fileds with XML layout
>
> ...or how can I display them (NDC and MDC fields) with Chainsaw, if I
> have to save the logs into a file? (and have to load the file with
> Chainsaw)
>
> Does any other program for displaying log4j logs hierarchically?
>
> Thanks:
>    Bence
>
> On 12/5/06, Bence Takács <[EMAIL PROTECTED]> wrote:
> > How can I get the NDC and MDC fileds, if I'm using XML layout?
> >
> > Thanks:
> >    Bence
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



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

Reply via email to