Re: Need Info/Documentation/Examples for extending log4j for additional fields/info

2009-08-11 Thread Yair Ogen
I think MDC can really help because it is per thread and can be used with out any extension to log4j, just add to your pattern in config file and set in code when ever relevant. On Tue, Aug 11, 2009 at 7:16 PM, sukesh jain wrote: > > Hi, > > My problem is some what similar to one mentioned in th

RE: Need Info/Documentation/Examples for extending log4j for additional fields/info

2009-08-11 Thread sukesh jain
Hi, My problem is some what similar to one mentioned in this link (http://www.jajakarta.org/log4j/jakarta-log4j-1.1.3/docs/deepExtension.html) In brief, I am building an abstraction layer which encapsulates (through composition) logger object but user also passes additional information (say c

Re: Need Info/Documentation/Examples for extending log4j for additional fields/info

2009-08-11 Thread Ceki Gulcu
Hello Jain, Would you care to explain what is it that you are trying to accomplish? sukesh jain wrote: Hi all, I searched the Bugzilla repository and also the log4j manual, with the text "additional fields/info/properties" and "loggingEvent" but still did not found any pointers specifying ho

Re: Need Info/Documentation/Examples for extending log4j for additional fields/info

2009-08-11 Thread Yair Ogen
I would suggest NDC or MDC. On Tue, Aug 11, 2009 at 6:12 PM, sukesh jain wrote: > > > > > > > > > > > > > > > Hi all, > > I searched the Bugzilla repository and also the log4j manual, with the text > "additional fields/info/properties" and "loggingEvent" but still did not > found > any pointers

Need Info/Documentation/Examples for extending log4j for additional fields/info

2009-08-11 Thread sukesh jain
Hi all, I searched the Bugzilla repository and also the log4j manual, with the text "additional fields/info/properties" and "loggingEvent" but still did not found any pointers specifying how to add few custom fields or properties (I guess it must go to LoggingEvent) that would appear