You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Yair Ogen <ya...@gmail.com> on 2009/08/11 17:24:27 UTC
Re: Need Info/Documentation/Examples for extending log4j for
additional fields/info
I would suggest NDC or MDC.
On Tue, Aug 11, 2009 at 6:12 PM, sukesh jain <ja...@hotmail.com> 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 how to add few custom fields or properties (I guess
> it
> must go to LoggingEvent) that would appear finally in the log files.
>
> As mentioned earlier I guess it has to be in LoggingEvent but while
> searching
> web, I found that it is not recommended or not the proper way as many
> issues
> are created because of it. Hence, I would like to know the pointers to
> proper
> way of achieving this.
>
> If someone has come across any documentation/examples it would be really
> helpful. Thanks in advance.
>
> Regards,
>
> Jain
> _________________________________________________________________
> We all see it as it is. But on MSN India, the difference lies in
> perspective.
> http://in.msn.com
>