Hi
I am planning to use MDC with Log4J and use it with
the XMLLayout so that the MDC information (which in my
case is the host name) is recorded with every log
message .
I was able to successfully use MDC with the
PatternLayout by specifying it as
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%X{remotehost} %d{DATE} %-5p %-15c{1}: %m%n"/>
</layout>
However I am not able to do the same using XMLLayout .
I browsed the net and could not findy any examples as
to doing something similar (i.e being able to use the
equivalent of conversionpattern with XMLLayout ) .
Please help as our project deadline is coming closer
and for last 5 days i have had no luck with the same .
The Log4J docs also dont have any example as to how to
format the XMLLayout output .
Any help would be cool !!
Thanks in advance
Kar
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]