> Do you mean that XMLLayout thats accepts MDC input is > available from CVS . I currently have version 1.2.8 so > dont know if that suports MDC or not . >
Yes, it means to have the feature you seem to need, you will need to download the CVS module from the apache cvs server and build the jar using ant. The HEAD of this cvs module is notionally the log4j1.3 version, but we haven't reached the alpha phase yet, so please use it at your own risk. > Secondly can u let me know as to what needs to be done > in order to be able to use MDC with XMLLayout -- can I > see a log4j.xml config explaining the same if > available . > Nothing to do but choose to use the XMLLayout if you decide to use the pre-alpha-1.3 version built from cvs. XMLLayout will output the MDC values according to the org.apache.log4j.xml.log4j.dtd file. > Thirdly is there any way I can include a pattern as in > the PatternLayout to spit out teh XML message ?? I > mean basically I want to show the hostname and time of > log message in the XML output and am kinda in a fix as > to if it can be done. > It MIGHT be possible... You'd have to do some PatternLayout trickery. Might be easier to try downloading the log4j cvs and build it and try it first. Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
