Hi Ceki,
I had a quick question about the recent addition of properties to LoggingEvent. Why did you do this? Is is supposed to be something separate from the MDC? I looks like each LoggingEvent has its own properties, so it just seems like a duplication to me. I'm just trying to understand.
Yes there is a lot of similarity and overlap between the two except that the MDC is per thread whereas the properties are per event. The properties are intended to be set by Layouts or Appenders for events that they output. The values of the properties can be computed by the Appenders/Layouts or specified by the user at config time.
I am thinking of modifying the currently implemented receivers to insert the source information into the logging event when it is received. SocketReceiver and SocketHubAppender would add ip and port info, JMSAppender would add the topic info. So, I am thinking that either the MDC or the properties might be the right place. What do you think?
Good question. I would definitely recommend properties. I hope this answers the question.
-Mark
--
Ceki
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]