You're right - PROP is a property, which is usually just the MDC entries
associated with an event.  However, properties can be added by appenders
as well as receivers.  

In Chainsaw V2 we use properties to route events to tabs (default
routing uses 'application' and 'hostname' properties) - these properties
are almost always added by appenders.
 
If you are using log4j 1.2.x, MDC (or your own appender) is the only way
associate properties with events (without creating your own appender).

If you are using log4j 1.3 alpha, LoggerRepository has a 'setProperty'
method which will add the property to every event processed by the
repository.  

In log4j 1.3, there is also PropertyFilter which will allow you to add
properties to events via the xml config file.

MDC is the only way to specify properties on events in code (would be
nice if this wasn't the case).

Hope this helps,

Scott 



-----Original Message-----
From: Maciej Gawinecki [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 16, 2006 11:07 AM
To: [email protected]
Subject: PROP in Chainsaw

Hi!

Tutorial for Chainsaw v2 says:

 "Supported field identifiers:
  [...]

  PROP.[key name]

 "

What is PROP ?
How is different form NDC or MDC ?
Can I define PROP for a single event or pack of events ?
How can I set value of PROP.someKey in my application ?

All the best

Maciej


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