From log4net-user-returnthorntonjeremy@example.com Mon Jan 05 16:39:04 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 78309 invoked from network); 5 Jan 2009 16:39:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jan 2009 16:39:04 -0000 Received: (qmail 21971 invoked by uid 500); 5 Jan 2009 16:39:03 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 21782 invoked by uid 500); 5 Jan 2009 16:39:03 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 21773 invoked by uid 99); 5 Jan 2009 16:39:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 08:39:02 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FUZZY_CREDIT,HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thorntonjeremy@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO SMTP1.calyon.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 16:38:53 +0000 Received: from pegase.dcmc.creditlyonnais.fr ([83.161.120.155]) by SMTP1.calyon.com with ESMTP; 05 Jan 2009 17:38:54 +0100 Received: from galatee.cm.par.emea.cib ([83.161.120.155] [83.161.120.155]) by pegase.dcmc.creditlyonnais.fr with ESMTP for thorntonjeremy@example.com; Mon, 5 Jan 2009 17:44:27 +0100 Received: from MXMXPA22.MSX.CIB (MXMXPA22.MSX.CIB [83.161.120.155]) by galatee.cm.par.emea.cib with ESMTP for thorntonjeremy@example.com; Mon, 5 Jan 2009 17:38:30 +0100 Received: from MXMXPA26.MSX.CIB ([83.161.120.155]) by MXMXPA22.MSX.CIB with Microsoft SMTPSVC600.956.9433); Mon, 5 Jan 2009 17:38:29 +0100 Received: from MXCU02MX1.MSX.CIB ([83.161.120.155]) by MXMXPA26.MSX.CIB with Microsoft SMTPSVC600.956.9433); Mon, 5 Jan 2009 17:38:29 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------7NhE3WuB9OnU6N9D2A0R5Y7" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Rich text box appender... Date: Mon, 5 Jan 2009 17:38:28 +0100 Message-Id: <thorntonjeremy@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Rich text box appender... Thread-Index: AclvVAnQ9QpEMY3tSYW7pNPFkZkbLw== From: Graham Walsh <thorntonjeremy@example.com> To: "Log4NET User" <thorntonjeremy@example.com> X-OriginalArrivalTime: 05 Jan 2009 16:38:29.0393 (UTC) FILETIME=[0A162810:01C96F54] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------------7NhE3WuB9OnU6N9D2A0R5Y7 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C96F54.0A2C2896" This is a multi-part message in MIME format. ------_=_NextPart_001_01C96F54.0A2C2896 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable hi, =20 I have a rich text box appender in place and everything is working correctly. However at runtime, the rich text box output (which is my log4net output), has all its text selected and the colour is wrong. Anybody know how I configure RichTextBox appender such that the contents of my rtb is not highlighted.. and even if it must be highlighted, anybody know how I can change this colour.=20 =20 =20 for info, this is what my appender looks like... =20 <appender name=3D"MainFormRichTextAppender" type=3D"log4net.Appender.RichTextBoxAppender"> <appendToFile value=3D"true" /> <maximumFileSize value=3D"250000KB" /> <maxSizeRollBackups value=3D"2" /> <!--<lockingModel type=3D"log4net.Appender.FileAppender+MinimalLock" /> <lockingModel type=3D"log4net.Appender.RichTextBoxAppender+MinimalLock" />--> <layout type=3D"log4net.Layout.PatternLayout"> <conversionPattern value=3D"%date %-5level %-70logger - = %message%newline" /> </layout> <!--<code lang=3D"XML" escaped=3D"true">--> <mapping> <level value=3D"DEBUG" /> <textColorName value=3D"DarkGray" /> <bold value=3D"true" /> <fontFamilyName value=3D"Microsoft Sans Serif"/> <pointSize value=3D"7.75" /> </mapping> <mapping> <level value=3D"INFO" /> <textColorName value=3D"Black" /> <bold value=3D"true" /> <fontFamilyName value=3D"Microsoft Sans Serif"/> <pointSize value=3D"7.75" /> </mapping> <mapping> <level value=3D"WARN" /> <textColorName value=3D"LightBlue" /> <bold value=3D"true" /> <fontFamilyName value=3D"Microsoft Sans Serif"/> <pointSize value=3D"7.75" /> </mapping> <mapping> <level value=3D"ERROR" /> <textColorName value=3D"Red" /> <bold value=3D"true" /> <fontFamilyName value=3D"Microsoft Sans Serif"/> <pointSize value=3D"7.75" /> </mapping> <mapping> <level value=3D"FATAL" /> <textColorName value=3D"Black" /> <fontFamilyName value=3D"Microsoft Sans Serif"/> <pointSize value=3D"7.75" /> </mapping> <!--</code>--> </appender> thanks =20 Graham ------_=_NextPart_001_01C96F54.0A2C2896 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2900.3395" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2>hi,</FONT></SPAN></DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial size=3D2>I have = a rich text=20 box appender in place and everything is working correctly. However at = runtime,=20 the rich text box output (which is my log4net output), has all its text = selected=20 and the colour is wrong. Anybody know how I configure RichTextBox = appender such=20 that the contents of my rtb is not highlighted.. and even if it must be=20 highlighted, anybody know how I can change this colour. = </FONT></SPAN></DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial size=3D2>for = info, this is=20 what my appender looks like...</FONT></SPAN></DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D107143616-05012009><FONT color=3D#0000ff size=3D1> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>appender</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>name</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff=20 size=3D1>MainFormRichTextAppender</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>type</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff=20 size=3D1>log4net.Appender.RichTextBoxAppender</FONT><FONT = size=3D1>"</FONT><FONT=20 color=3D#0000ff size=3D1>&gt;</P> <P></P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>appendToFile</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>true</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>maximumFileSize</FONT><FONT = color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>250000KB</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 = size=3D1>maxSizeRollBackups</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>2</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> = /&gt;</P> <P>&lt;!--</FONT><FONT color=3D#008000 size=3D1>&lt;lockingModel=20 type=3D"log4net.Appender.FileAppender+MinimalLock" /&gt;</P> <P>&lt;lockingModel = type=3D"log4net.Appender.RichTextBoxAppender+MinimalLock"=20 /&gt;</FONT><FONT color=3D#0000ff size=3D1>--&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>layout</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>type</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff=20 size=3D1>log4net.Layout.PatternLayout</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 = size=3D1>conversionPattern</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>%date %-5level %-70logger - %message%newline</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>layout</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;!--</FONT><FONT color=3D#008000 size=3D1>&lt;code lang=3D"XML"=20 escaped=3D"true"&gt;</FONT><FONT color=3D#0000ff size=3D1>--&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>level</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>DEBUG</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>textColorName</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff=20 size=3D1>DarkGray</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>bold</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>true</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>fontFamilyName</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>Microsoft Sans Serif</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>/&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>pointSize</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>7.75</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>level</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>INFO</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>textColorName</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>Black</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>bold</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>true</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>fontFamilyName</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>Microsoft Sans Serif</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>/&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>pointSize</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>7.75</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>level</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>WARN</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>textColorName</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff=20 size=3D1>LightBlue</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>=20 /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>bold</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>true</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>fontFamilyName</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>Microsoft Sans Serif</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>/&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>pointSize</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>7.75</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>level</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>ERROR</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>textColorName</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>Red</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>bold</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>true</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>fontFamilyName</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>Microsoft Sans Serif</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>/&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>pointSize</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>7.75</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>level</FONT><FONT = color=3D#0000ff size=3D1>=20 </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>FATAL</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>textColorName</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>Black</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P></P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>fontFamilyName</FONT><FONT=20 color=3D#0000ff size=3D1> </FONT><FONT color=3D#ff0000 = size=3D1>value</FONT><FONT=20 color=3D#0000ff size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>Microsoft Sans Serif</FONT><FONT size=3D1>"</FONT><FONT = color=3D#0000ff=20 size=3D1>/&gt;</P> <P>&lt;</FONT><FONT color=3D#800000 size=3D1>pointSize</FONT><FONT = color=3D#0000ff=20 size=3D1> </FONT><FONT color=3D#ff0000 size=3D1>value</FONT><FONT = color=3D#0000ff=20 size=3D1>=3D</FONT><FONT size=3D1>"</FONT><FONT color=3D#0000ff = size=3D1>7.75</FONT><FONT=20 size=3D1>"</FONT><FONT color=3D#0000ff size=3D1> /&gt;</P> <P></P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>mapping</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P> <P>&lt;!--</FONT><FONT color=3D#008000 = size=3D1>&lt;/code&gt;</FONT><FONT=20 color=3D#0000ff size=3D1>--&gt;</P> <P>&lt;/</FONT><FONT color=3D#800000 size=3D1>appender</FONT><FONT = color=3D#0000ff=20 size=3D1>&gt;</P></FONT></SPAN></DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2>thanks</FONT></SPAN></DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D107143616-05012009><FONT face=3DArial=20 size=3D2>Graham</FONT></SPAN></DIV></BODY></HTML> ------_=_NextPart_001_01C96F54.0A2C2896-- ------------7NhE3WuB9OnU6N9D2A0R5Y7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ce message et ses pi=E8ces jointes (le "message") est destin=E9 à l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser imm=E9diatement l'exp=E9diteur et de le d=E9truire ensuite. Le pr=E9sent message pouvant =EAtre alt=E9r=E9 =E0 notre insu, CALYON Cr=E9dit Agricole CIB ne peut pas =EAtre engag=E9 par son contenu. Tous droits r=E9serv=E9s. This message and/or any attachments (the "message") is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Cr=E9dit Agricole CIB. All rights reserved. ------------7NhE3WuB9OnU6N9D2A0R5Y7-- From log4net-user-returnthorntonjeremy@example.com Wed Jan 14 07:24:14 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 25545 invoked from network); 14 Jan 2009 07:24:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 14 Jan 2009 07:24:14 -0000 Received: (qmail 1424 invoked by uid 500); 14 Jan 2009 07:24:13 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 1405 invoked by uid 500); 14 Jan 2009 07:24:12 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 1396 invoked by uid 99); 14 Jan 2009 07:24:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 23:24:12 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thorntonjeremy@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 07:24:04 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <thorntonjeremy@example.com>) id 1LN06I-00021n-PK for thorntonjeremy@example.com; Tue, 13 Jan 2009 23:23:42 -0800 Message-ID: <thorntonjeremy@example.com> Date: Tue, 13 Jan 2009 23:23:42 -0800 (PST) From: lmenaria <thorntonjeremy@example.com> To: thorntonjeremy@example.com Subject: Re: How to enable IP address logging with Log4Net configuration In-Reply-To: <thorntonjeremy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: thorntonjeremy@example.com References: <thorntonjeremy@example.com> <thorntonjeremy@example.com> <thorntonjeremy@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Its working at application Level but if at the same time any other user will come to site. Then this property value is changed so logs show the latest value. (I have set this property at session start). So is there any other configuration to do this? because too many users will visit the site at same time. Please let me know. Thanks, Laxmilal -- View this message in context: http://www.nabble.com/How-to-enable-IP-address-logging-with-Log4Net-configuration-tp14349967p21451120.html Sent from the Log4net - Users mailing list thorntonjeremy@example.com. From log4net-user-returnthorntonjeremy@example.com Tue Jan 20 14:30:21 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 76849 invoked from network); 20 Jan 2009 14:30:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Jan 2009 14:30:21 -0000 Received: (qmail 85668 invoked by uid 500); 20 Jan 2009 14:30:17 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 85403 invoked by uid 500); 20 Jan 2009 14:30:15 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 85390 invoked by uid 99); 20 Jan 2009 14:30:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 06:30:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thorntonjeremy@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-bw0-f26.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 14:30:07 +0000 Received: by bwz7 with SMTP id 7so2612bwz.22 for <thorntonjeremy@example.com>; Tue, 20 Jan 2009 06:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=PqspFNgm/F3z4sB1eGRT9DXIs67vw+rtglqg7kCb49M=; b=FKrG7F5YgKipMVjs2tPH24RfOqCrVe75cqkgaAtxV4Xiz/zOoEjcthRmrGkrymajFt m36Tyngf4x9AddPcvBPiYZ0otQPEf1OysqP1OJrARDhc/4epy0oO5wSgDEXBwow69HTS OiXdVEJBVqEFl8gz7oZWXqsw/UJCiJr+rT/IE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=JhQ/LoKSc8J+Tgt8mqwMn7y9V9wRfiO8ipsto/fh3if0tORgM3YoSt3xe0SwD2cweB fh/ctR/GR2RMI+UVIvypQ2bAxCluK94khWxPdykUhN79nHPs1+PRmqwSHA3OSjI0rru1 s8QPlyr98oDFP7XN7h8EL+MVBShT9UH4NoA+Y= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id q19mr706827fgb.62.1232461785573; Tue, 20 Jan 2009 06:29:45 -0800 (PST) Date: Tue, 20 Jan 2009 11:29:45 -0300 Message-ID: <thorntonjeremy@example.com> Subject: corrupt zip file? From: Dervin Thunk <thorntonjeremy@example.com> To: thorntonjeremy@example.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Dear community; I've been trying to download the zip file at http://archive.apache.org/dist/incubator/log4net/1.2.10/incubating-log4net-1.2.10.zip, but for some reason, at the time of uncompressing, I'm getting a ! C:\Documents and Settings\Desktop\incubating-log4net-1.2.10.zip: The archive is either in unknown format or damaged and it obviously doesn't extract anything. I'm using winrar (v3.71) and 7zip(v4.64). Any ideas of what I may be doing wrong? Thanks, Dervin From log4net-user-returnthorntonjeremy@example.com Tue Jan 20 14:33:43 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 79613 invoked from network); 20 Jan 2009 14:33:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Jan 2009 14:33:41 -0000 Received: (qmail 94799 invoked by uid 500); 20 Jan 2009 14:33:40 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 94591 invoked by uid 500); 20 Jan 2009 14:33:40 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 94581 invoked by uid 99); 20 Jan 2009 14:33:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 06:33:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO hobbes.BURLINGTON.IVARA.COM) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 14:33:32 +0000 Received: from hobbes.BURLINGTON.IVARA.COM ([83.161.120.155]) by hobbes.BURLINGTON.IVARA.COM ([83.161.120.155]) with mapi; Tue, 20 Jan 2009 09:33:10 -0500 From: Rob Prouse <thorntonjeremy@example.com> To: Log4NET User <thorntonjeremy@example.com> Date: Tue, 20 Jan 2009 09:33:09 -0500 Subject: RE: corrupt zip file? Thread-Topic: corrupt zip file? Thread-Index: Acl7C59X6IoiMKQIT5Ow3+FIFwFQgAAAB9vg Message-ID: <thorntonjeremy@example.com> References: <thorntonjeremy@example.com> In-Reply-To: <thorntonjeremy@example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org It downloads and opens fine in 7Zip for me. I have had this happen before when a download is corrupted. Every time I re= downloaded, I think it was coming from the cache not the server and was the= refore still corrupt. Try deleting your browser cache and downloading again= . If that is not it, then maybe it is corrupt on a proxy server. Rob Prouse -----Original Message----- From: Dervin Thunk [mailto:thorntonjeremy@example.com] Sent: January-20-09 9:30 AM To: thorntonjeremy@example.com Subject: corrupt zip file? Dear community; I've been trying to download the zip file at http://archive.apache.org/dist/incubator/log4net/1.2.10/incubating-log4net-= 1.2.10.zip, but for some reason, at the time of uncompressing, I'm getting a ! C:\Documents and Settings\Desktop\incubating-log4net-1.2.10.zip: The archive is either in unknown format or damaged and it obviously doesn't extract anything. I'm using winrar (v3.71) and 7zip(v4.64). Any ideas of what I may be doing wrong? Thanks, Dervin From log4net-user-returnthorntonjeremy@example.com Tue Jan 20 14:53:28 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 88980 invoked from network); 20 Jan 2009 14:53:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Jan 2009 14:53:27 -0000 Received: (qmail 22256 invoked by uid 500); 20 Jan 2009 14:53:27 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 21852 invoked by uid 500); 20 Jan 2009 14:53:26 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 21843 invoked by uid 99); 20 Jan 2009 14:53:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 06:53:26 -0800 X-ASF-Spam-Status: No, hits=-3.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,URIBL_GREY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail98.messagelabs.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 14:53:16 +0000 X-VirusChecked: Checked X-Env-Sender: thorntonjeremy@example.com X-Msg-Ref: server-2.tower-98.messagelabs.com!1232463173!8846640!1 X-StarScan-Version: 6.0.0; banners=pnc.com,-,- X-Originating-IP: [83.161.120.155] Received: (qmail 15869 invoked from network); 20 Jan 2009 14:52:54 -0000 Received: from mail.pncbank.com (HELO imr01.pncbank.com) (83.161.120.155) by server-2.tower-98.messagelabs.com with AES256-SHA encrypted SMTP; 20 Jan 2009 14:52:54 -0000 Received: from vwall01.pncbank.com (vwall [83.161.120.155]) by imr01.pncbank.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id n0KEqruQ021474 for <thorntonjeremy@example.com>; Tue, 20 Jan 2009 09:52:53 -0500 (EST) Received: from ppntmm29.pncbank.com (PPNTMM29.pncbank.com [83.161.120.155]) by vwall01.pncbank.com (8.12.10+Sun/8.12.10) with ESMTP id n0KEqr1H024295 for <thorntonjeremy@example.com>; Tue, 20 Jan 2009 09:52:53 -0500 (EST) Subject: Out of the office From: thorntonjeremy@example.com To: "Log4NET User" <thorntonjeremy@example.com> Message-ID: <thorntonjeremy@example.com> Date: Tue, 20 Jan 2009 09:52:51 -0500 X-MIMETrack: Serialize by Router on PNCPGHM29/PGH/MAIL/PNC(Release 7.0.2FP2 HF613|February 28, 2008) at 01/20/2009 09:52:53 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org I will be out of the office starting 01/20/2009 and will not return until 01/21/2009. I will respond to your message upon my return. The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. This message may contain an advertisement of a product or service and thus may constitute a commercial electronic mail message under US Law. The postal address for PNC is 249 Fifth Avenue, Pittsburgh, PA 15222. If you do not wish to receive any additional advertising or promotional messages from PNC at this e-mail address, click here to unsubscribe. https://pnc.p.delivery.net/m/u/pnc/uni/p.asp By unsubscribing to this message, you will be unsubscribed from all advertising or promotional messages from PNC. Removing your e-mail address from this mailing list will not affect your subscription to alerts, e-newsletters or account servicing e-mails. From log4net-user-returnthorntonjeremy@example.com Tue Jan 20 15:44:36 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 4342 invoked from network); 20 Jan 2009 15:44:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Jan 2009 15:44:36 -0000 Received: (qmail 1187 invoked by uid 500); 20 Jan 2009 15:44:35 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 1157 invoked by uid 500); 20 Jan 2009 15:44:35 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 1148 invoked by uid 99); 20 Jan 2009 15:44:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 07:44:35 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thorntonjeremy@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 15:44:26 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <thorntonjeremy@example.com>) id 1LPIlp-0002Ln-Mn for thorntonjeremy@example.com; Tue, 20 Jan 2009 07:44:05 -0800 Message-ID: <thorntonjeremy@example.com> Date: Tue, 20 Jan 2009 07:44:05 -0800 (PST) From: dnitecki <thorntonjeremy@example.com> To: thorntonjeremy@example.com Subject: RE: I'm not able to get the latest version In-Reply-To: <thorntonjeremy@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: thorntonjeremy@example.com References: <thorntonjeremy@example.com> <thorntonjeremy@example.com> X-Virus-Checked: Checked by ClamAV on apache.org FYI: Had the same problem with whichever mirror I was automatically redirected t= o from the log4net download page (http://logging.apache.org/log4net/download.html). Not sure which mirror I was actually connected to... Had success with the direct CVS download, though. Somebody should check th= e mirrors/redirector...? Radovan Raszka wrote: >=20 > What location did you try to download? Download directly from apache.org > (http://cvs.apache.org/dist/incubator/log4net/1.2.10/incubating-log4net-1= .2.10.zip) > is without any problem, tested just now.... > R >=20 > -----Original Message----- > From: Pazos Rodriguez, Rafael [mailto:thorntonjeremy@example.com= ]=20 > Sent: Tuesday, February 05, 2008 3:58 PM > To: thorntonjeremy@example.com > Subject: I'm not able to get the latest version >=20 > I tried to download the latest (incubating-log4net-1.2.10.zip) release, > but the file seems to be corrupted. I tried with WinRAR and also with > 7zip.=20 >=20 > Maybe the mirror nearest to my location (Germany) has some problems.=20 >=20 > I would like to be able to test the last version.=20 >=20 > Thank you! >=20 > Rafa >=20 >=20 > -- > Wincor Nixdorf International GmbH > Sitz der Gesellschaft: Paderborn > Registergericht Paderborn HRB 3507 > Gesch=C3=A4ftsf=C3=BChrer: Eckard Heidloff (Vorsitzender), Stefan Auerbac= h, Dr. > J=C3=BCrgen Wunram Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller > Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. > DE44477193 >=20 > Diese E-Mail enth=C3=A4lt vertrauliche Informationen. Wenn Sie nicht der > richtige Adressat sind oder diese E-Mail irrt=C3=BCmlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail= . > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist > nicht gestattet. >=20 > This e-mail may contain confidential information. If you are not the > intended recipient (or have received this e-mail in error) please notify > the sender immediately and destroy this e-mail. Any unauthorised copying, > disclosure or distribution of the material in this e-mail is strictly > forbidden. >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/I%27m-not-able-to-get-t= he-latest-version-tp15291877p21565661.html Sent from the Log4net - Users mailing list thorntonjeremy@example.com. From log4net-user-returnthorntonjeremy@example.com Tue Jan 20 17:03:31 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 38088 invoked from network); 20 Jan 2009 17:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Jan 2009 17:03:31 -0000 Received: (qmail 27937 invoked by uid 500); 20 Jan 2009 17:03:29 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 27918 invoked by uid 500); 20 Jan 2009 17:03:29 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 27909 invoked by uid 99); 20 Jan 2009 17:03:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 09:03:29 -0800 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO g5t0008.atlanta.hp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 17:03:20 +0000 Received: from G5W0603.americas.hpqcorp.net (g5w0603.americas.hpqcorp.net [83.161.120.155]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by g5t0008.atlanta.hp.com (Postfix) with ESMTPS id 45BBD2408B for <thorntonjeremy@example.com>; Tue, 20 Jan 2009 17:02:52 +0000 (UTC) Received: from G6W0173.americas.hpqcorp.net (83.161.120.155) by G5W0603.americas.hpqcorp.net (83.161.120.155) with Microsoft SMTP Server (TLS) id 8.1.336.0; Tue, 20 Jan 2009 17:02:09 +0000 Received: from GVW1124EXC.americas.hpqcorp.net ([83.161.120.155]) by G6W0173.americas.hpqcorp.net ([83.161.120.155]) with mapi; Tue, 20 Jan 2009 17:02:09 +0000 From: "Garg, Mayank" <thorntonjeremy@example.com> To: "thorntonjeremy@example.com" <thorntonjeremy@example.com> Date: Tue, 20 Jan 2009 17:02:04 +0000 Subject: Issues with Korean/Chinese locales in XmlLayout... Thread-Topic: Issues with Korean/Chinese locales in XmlLayout... Thread-Index: Acl7INH3E610V4dAS76JRLLDKEq6PA== Message-ID: <thorntonjeremy@example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_DFD8836B64F74B489D48B163BFE9D55448F1B91434GVW1124EXCame_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_DFD8836B64F74B489D48B163BFE9D55448F1B91434GVW1124EXCame_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am using v1.2.10 and having issues with Korean and Chinese locales. I am = using XmlLayout and in the XML log file, messages (contents of the element = "message") in Korean and Chinese languages appear as "????". I am using the= correct encoding "utf-8", however I tried with other possible encodings su= pporting Unicode but the problem did not get solved. I debugged the code and found that in Transform class, MaskXmlInvalidCharac= ters function escapes the valid Korean and Chinese characters as "?" charac= ters because it thinks they are invalid XML unicode characters, its basical= ly the following array defined in Transform class which is creating the pro= blem: private static Regex INVALIDCHARS=3Dnew Regex(@"[^\x09\x0A\x0D\x20-\xFF\u00= FF-\u07FF\uE000-\uFFFD]",RegexOptions.Compiled); Could anybody suggest a possible workaround for this? If I bypass the maski= ng step, the message appears correctly in the log file. Or, is this a bug w= hich should be solved in a certain manner? One more issue that I am facing is that we had included the log4net dll lon= g time back in our sources as a reference. Now, if I try to rebuild the dll from the log4net sources and try replacing= it with the older dll, our sources doesn't get built and the following com= piler error is thrown: Error 796 Unknown build error, 'The located assembly's manifest d= efinition does not match the assembly reference. (Exception from HRESULT: 0= x80131040)' I have tried the following things: 1.Building log4net sources with VS2005 and keeping the conditional compilat= ion sysmbols as NET;NET_2_0 as well as NET;NET_1_0 2.Building log4net sources with VS2008 and keeping the target framework as = 3.5 But nothing seems to work. The old log4net dll seems to have been built on VS2005 with conditional com= pilation sysmbols as NET;NET_2_0 and our sources are built using VS 2008 us= ing target framework as 3.5. What is it that I might be doing wrong? Initially I was getting errors rela= ted to strong names but I resolved it by generating the .snk file as mentio= ned on the Apache website and signing the dll. Please help. Regards, Mayank --_000_DFD8836B64F74B489D48B163BFE9D55448F1B91434GVW1124EXCame_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:#606420; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1372727048; mso-list-type:hybrid; mso-list-template-ids:-1102257614 1493840562 134807577 134807579 134807567= 134807577 134807579 134807567 134807577 134807579;} @list l0:level1 {mso-level-tab-stop:36.0pt; mso-level-number-position:left; text-indent:-18.0pt; mso-ascii-font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-hansi-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} ol {margin-bottom:0cm;} ul {margin-bottom:0cm;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-GB link=3Dblue vlink=3D"#606420"> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Hi,<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>I am using v1.2.10 and having issues with Korean and Chi= nese locales. I am using XmlLayout and in the XML log file, messages (contents o= f the element &#8220;message&#8221;) in Korean and Chinese languages appear a= s &#8220;????&#8221;. I am using the correct encoding &#8220;utf-8&#8221;, however I tried with o= ther possible encodings supporting Unicode but the problem did not get solved. <= o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>I debugged the code and found that in Transform class, M= askXmlInvalidCharacters function escapes the valid Korean and Chinese characters as &#8220;?&#8221; characters because it thinks they are invalid XML unicode characters, its basically the following array defined in Transform class which is creating = the problem:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal style=3D'text-indent:36.0pt'><font size=3D2 face=3DAri= al><span style=3D'font-size:10.0pt;font-family:Arial'>private static Regex INVALIDCH= ARS=3Dnew Regex(@&quot;[^\x09\x0A\x0D\x20-\xFF\u00FF-\u07FF\uE000-\uFFFD]&quot;,Regex= Options.Compiled);<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Could anybody suggest a possible workaround for this? If= I bypass the masking step, the message appears correctly in the log file. Or,= is this a bug which should be solved in a certain manner?<o:p></o:p></span></f= ont></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>One more issue that I am facing is that we had included = the log4net dll long time back in our sources as a reference. <o:p></o:p></span= ></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Now, if I try to rebuild the dll from the log4net source= s and try replacing it with the older dll, our sources doesn&#8217;t get buil= t and the following compiler error is thrown:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Error&nbsp;&nbsp;&nbsp;&nbsp; 796&nbsp;&nbsp;&nbsp;&nbsp= ;&nbsp;&nbsp; Unknown build error, 'The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' <o:p></o:p></span= ></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>I have tried the following things:<o:p></o:p></span></fo= nt></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>1.Building log4net sources with VS2005 and keeping the c= onditional compilation sysmbols as NET;NET_2_0 as well as NET;NET_1_0<o:p></o:p></span= ></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>2.Building log4net sources with VS2008 and keeping the target framework as 3.5<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>But nothing seems to work. <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>The old log4net dll seems to have been built on VS2005 w= ith conditional compilation sysmbols as NET;NET_2_0 and our sources are built using VS 2008 using target framework as 3.5.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>What is it that I might be doing wrong? Initially I was getting errors related to strong names but I resolved it by generating the = .snk file as mentioned on the Apache website and signing the dll.<o:p></o:p></sp= an></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Please help.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Regards,<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>Mayank<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'>&nbsp;<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1= 0.0pt; font-family:Arial'><o:p>&nbsp;</o:p></span></font></p> </div> </body> </html> --_000_DFD8836B64F74B489D48B163BFE9D55448F1B91434GVW1124EXCame_-- From log4net-user-returnthorntonjeremy@example.com Tue Jan 20 18:45:00 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 3696 invoked from network); 20 Jan 2009 18:44:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 20 Jan 2009 18:44:59 -0000 Received: (qmail 58902 invoked by uid 500); 20 Jan 2009 18:44:58 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 58874 invoked by uid 500); 20 Jan 2009 18:44:58 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 58865 invoked by uid 99); 20 Jan 2009 18:44:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 10:44:58 -0800 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF thorntonjeremy@example.com) Received: from [83.161.120.155] (HELO psmtp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 18:44:48 +0000 Received: from source ([83.161.120.155]) (using TLSv1) by exprod8ob120.postini.com ([83.161.120.155]) with SMTP ID thorntonjeremy@example.com; Tue, 20 Jan 2009 10:44:27 PST Received: from ABMAIL14.ab.farm ([83.161.120.155]) by ABMAIL04.agribank.com with Microsoft SMTPSVC600.956.9433); Tue, 20 Jan 2009 12:44:48 -0600 Received: from MAKYSMT01.maky.midam.farm (83.161.120.155) by ABMAIL14.ab.farm (83.161.120.155) with Microsoft SMTP Server id 8.1.336.0; Tue, 20 Jan 2009 12:44:19 -0600 Received: from MAKYXCH01.maky.midam.farm ([83.161.120.155]) by MAKYSMT01.maky.midam.farm with Microsoft SMTPSVC600.956.9433); Tue, 20 Jan 2009 13:45:42 -0500 Received: from MAKYCHN01.maky.midam.farm ([83.161.120.155]) by MAKYXCH01.maky.midam.farm with Microsoft SMTPSVC600.956.9433); Tue, 20 Jan 2009 13:44:02 -0500 Received: from MAKYCMS01.maky.midam.farm ([888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a44d4d:a5dc:ae69:6235]) by MAKYCHN01.maky.midam.farm ([888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4b1e2:b01:aeff:fa59%13]) with mapi; Tue, 20 Jan 2009 13:44:02 -0500 From: Nick Durcholz <thorntonjeremy@example.com> To: Log4NET User <thorntonjeremy@example.com> Date: Tue, 20 Jan 2009 13:44:01 -0500 Subject: RE: Issues with Korean/Chinese locales in XmlLayout... Thread-Topic: Issues with Korean/Chinese locales in XmlLayout... Thread-Index: Acl7INH3E610V4dAS76JRLLDKEq6PAABlpHw Message-ID: <thorntonjeremy@example.com> References: <thorntonjeremy@example.com> In-Reply-To: <thorntonjeremy@example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_C914919F09C569429C7EF2264965D7CA01763823B1MAKYCMS01maky_" MIME-Version: 1.0 X-OriginalArrivalTime: 20 Jan 2009 18:44:02.0998 (UTC) FILETIME=[10A94D60:01C97B2F] X-Virus-Checked: Checked by ClamAV on apache.org --_000_C914919F09C569429C7EF2264965D7CA01763823B1MAKYCMS01maky_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To output Chinese or Korean characters using XmlLayout you could try escapi= ng log messages before even sending them to the log4net ILog object. In C#= , something like the following is what I'm talking about: public class Foo { private ILog log =3D LogManager.GetLogger(typeof(Foo)); private void LogSomething(string message) { //replace the chinese yen symbol with its xml character escape sequ= ence //see http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_e= ntity_references //for more info on escape sequences log.Debug(message.Replace("\u00A5", "&#x00A5;")); } } That is a workaround that might work for you, but it sounds like an issue w= ith XmlLayout class IMO. XmlLayout is responsible for converting log messa= ges to xml, so it should correctly escape unicode characters for you and no= t require the caller to have knowledge of the log output format. For the build issue, it sounds like you are running into a strong naming is= sue. The private key used to sign log4net.dll is not distributed with the = source download packages. If you compile an application against log4net.dl= l that is distributed by Apache and later replace that with a modified log4= net.dll that you compiled, then you will get this error (because the strong= name keys are not the same). I would suggest that if you are going to modify the log4net source and comp= ile it yourself that you create a new strong name key and use that to sign = your modified version. You will then need to recompile everything that ref= erences log4net in your application (make sure it references the customized= dll at compile time). ________________________________ From: Garg, Mayank [mailto:thorntonjeremy@example.com] Sent: Tuesday, January 20, 2009 12:02 PM To: thorntonjeremy@example.com Subject: Issues with Korean/Chinese locales in XmlLayout... Hi, I am using v1.2.10 and having issues with Korean and Chinese locales. I am = using XmlLayout and in the XML log file, messages (contents of the element = "message") in Korean and Chinese languages appear as "????". I am using the= correct encoding "utf-8", however I tried with other possible encodings su= pporting Unicode but the problem did not get solved. I debugged the code and found that in Transform class, MaskXmlInvalidCharac= ters function escapes the valid Korean and Chinese characters as "?" charac= ters because it thinks they are invalid XML unicode characters, its basical= ly the following array defined in Transform class which is creating the pro= blem: private static Regex INVALIDCHARS=3Dnew Regex(@"[^\x09\x0A\x0D\x20-\xFF\u00= FF-\u07FF\uE000-\uFFFD]",RegexOptions.Compiled); Could anybody suggest a possible workaround for this? If I bypass the maski= ng step, the message appears correctly in the log file. Or, is this a bug w= hich should be solved in a certain manner? One more issue that I am facing is that we had included the log4net dll lon= g time back in our sources as a reference. Now, if I try to rebuild the dll from the log4net sources and try replacing= it with the older dll, our sources doesn't get built and the following com= piler error is thrown: Error 796 Unknown build error, 'The located assembly's manifest d= efinition does not match the assembly reference. (Exception from HRESULT: 0= x80131040)' I have tried the following things: 1.Building log4net sources with VS2005 and keeping the conditional compilat= ion sysmbols as NET;NET_2_0 as well as NET;NET_1_0 2.Building log4net sources with VS2008 and keeping the target framework as = 3.5 But nothing seems to work. The old log4net dll seems to have been built on VS2005 with conditional com= pilation sysmbols as NET;NET_2_0 and our sources are built using VS 2008 us= ing target framework as 3.5. What is it that I might be doing wrong? Initially I was getting errors rela= ted to strong names but I resolved it by generating the .snk file as mentio= ned on the Apache website and signing the dll. Please help. Regards, Mayank --_000_C914919F09C569429C7EF2264965D7CA01763823B1MAKYCMS01maky_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D=20 "urn:schemas-microsoft-com:vml" xmlns:o =3D=20 "urn:schemas-microsoft-com:office:office" xmlns:w =3D=20 "urn:schemas-microsoft-com:office:word"><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2900.3492" name=3DGENERATOR> <STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt = 90.0pt; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: #606420; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: #606420; TEXT-DECORATION: underline } SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose } DIV.Section1 { page: Section1 } OL { MARGIN-BOTTOM: 0cm } UL { MARGIN-BOTTOM: 0cm } </STYLE> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></HEAD> <BODY lang=3DEN-GB vLink=3D#606420 link=3Dblue> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>To output Chinese or Korean characters using XmlLayout you could t= ry=20 escaping log messages before even sending them to the log4net ILog object.&= nbsp;=20 In C#, something like the following is what I'm talking=20 about:</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>public class Foo {</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>&nbsp;&nbsp;&nbsp; private ILog log =3D=20 LogManager.GetLogger(typeof(Foo));</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>&nbsp;&nbsp;&nbsp; private void LogSomething(string message)=20 {</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN=20 class=3D348334717-20012009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT= =20 face=3DArial size=3D2>//replace the chinese yen symbol with its xml charact= er escape=20 sequence</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //see <A=20 href=3D"http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_= references"><FONT=20 color=3D#000000>http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character= _entity_references</FONT></A></FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //for more info on esca= pe=20 sequences</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN=20 class=3D348334717-20012009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT= =20 face=3DArial size=3D2>log.Debug(message.Replace("\u00A5",=20 "&amp;#x00A5;"));</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009>&nbsp;&nbsp;&n= bsp; <FONT=20 face=3DArial size=3D2>}</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>}</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>That is a workaround that might work for you, but it sounds like a= n issue=20 with XmlLayout class IMO.&nbsp; XmlLayout is responsible for converting log= =20 messages to xml, so it should correctly escape unicode characters for you a= nd=20 not require the caller to have knowledge of the log output=20 format.</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2>For the build issue, it sounds like you are running into a strong = naming=20 issue.&nbsp; The private key used to sign log4net.dll is not distributed wi= th=20 the source download packages.&nbsp; If you compile an application against=20 log4net.dll that is distributed by Apache and later replace that with a=20 modified&nbsp;log4net.dll that you compiled, then you will get this error=20 (because the strong name keys are not the same).&nbsp; </FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D348334717-20012009><FONT face=3DA= rial size=3D2>I=20 would suggest that if you are going to modify the log4net source and compil= e it=20 yourself that you create a new strong name key and use that to sign your=20 modified version.&nbsp; You will then need to recompile=20 <STRONG>everything</STRONG> that references log4net in your application (ma= ke=20 sure it references the customized dll at compile time).</FONT></SPAN><BR></= DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B> Garg, Mayank [mailto:mayank.garg@= hp.com]=20 <BR><B>Sent:</B> Tuesday, January 20, 2009 12:02 PM<BR><B>To:</B>=20 thorntonjeremy@example.com<BR><B>Subject:</B> Issues with Korean/Chine= se=20 locales in XmlLayout...<BR></FONT><BR></DIV> <DIV></DIV> <DIV class=3DSection1> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,<o:p></o:p></SPAN></FONT><= /P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am using v1.2.10 and having= issues=20 with Korean and Chinese locales. I am using XmlLayout and in the XML log fi= le,=20 messages (contents of the element &#8220;message&#8221;) in Korean and Chin= ese languages=20 appear as &#8220;????&#8221;. I am using the correct encoding &#8220;utf-8&= #8221;, however I tried with=20 other possible encodings supporting Unicode but the problem did not get sol= ved.=20 <o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I debugged the code and found= that=20 in Transform class, MaskXmlInvalidCharacters function escapes the valid Kor= ean=20 and Chinese characters as &#8220;?&#8221; characters because it thinks they= are invalid XML=20 unicode characters, its basically the following array defined in Transform = class=20 which is creating the problem:<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal style=3D"TEXT-INDENT: 36pt"><FONT face=3DArial size=3D= 2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">private static Regex=20 INVALIDCHARS=3Dnew=20 Regex(@"[^\x09\x0A\x0D\x20-\xFF\u00FF-\u07FF\uE000-\uFFFD]",RegexOptions.Co= mpiled);<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Could anybody suggest a possi= ble=20 workaround for this? If I bypass the masking step, the message appears corr= ectly=20 in the log file. Or, is this a bug which should be solved in a certain=20 manner?<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">One more issue that I am faci= ng is=20 that we had included the log4net dll long time back in our sources as a=20 reference. <o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Now, if I try to rebuild the = dll=20 from the log4net sources and try replacing it with the older dll, our sourc= es=20 doesn&#8217;t get built and the following compiler error is=20 thrown:<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Error&nbsp;&nbsp;&nbsp;&nbsp;= =20 796&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unknown build error, 'The located=20 assembly's manifest definition does not match the assembly reference. (Exce= ption=20 from HRESULT: 0x80131040)' <o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have tried the following=20 things:<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">1.Building log4net sources wi= th=20 VS2005 and keeping the conditional compilation sysmbols as NET;NET_2_0 as w= ell=20 as NET;NET_1_0<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">2.Building log4net sources wi= th=20 VS2008 and keeping the target framework as 3.5<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">But nothing seems to work.=20 <o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">The old log4net dll seems to = have=20 been built on VS2005 with conditional compilation sysmbols as NET;NET_2_0 a= nd=20 our sources are built using VS 2008 using target framework as=20 3.5.<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">What is it that I might be do= ing=20 wrong? Initially I was getting errors related to strong names but I resolve= d it=20 by generating the .snk file as mentioned on the Apache website and signing = the=20 dll.<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Please=20 help.<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Regards,<o:p></o:p></SPAN></F= ONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Mayank<o:p></o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FON= T></P></DIV></BODY></HTML> --_000_C914919F09C569429C7EF2264965D7CA01763823B1MAKYCMS01maky_-- From log4net-user-returnthorntonjeremy@example.com Thu Jan 22 17:01:25 2009 Return-Path: <log4net-user-returnthorntonjeremy@example.com> Delivered-To: thorntonjeremy@example.com Received: (qmail 64736 invoked from network); 22 Jan 2009 17:01:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 22 Jan 2009 17:01:25 -0000 Received: (qmail 70626 invoked by uid 500); 22 Jan 2009 17:01:23 -0000 Delivered-To: thorntonjeremy@example.com Received: (qmail 70611 invoked by uid 500); 22 Jan 2009 17:01:23 -0000 Mailing-List: contact thorntonjeremy@example.com; run by ezmlm Precedence: bulk list-help: <mailto:thorntonjeremy@example.com> list-unsubscribe: <mailto:thorntonjeremy@example.com> List-Post: <mailto:thorntonjeremy@example.com> Reply-To: "Log4NET User" <thorntonjeremy@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list thorntonjeremy@example.com Received: (qmail 70602 invoked by uid 99); 22 Jan 2009 17:01:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2009 09:01:23 -0800 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO g1t0028.austin.hp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2009 17:01:13 +0000 Received: from G3W0630.americas.hpqcorp.net (g3w0630.americas.hpqcorp.net [83.161.120.155]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by g1t0028.austin.hp.com (Postfix) with ESMTPS id 073B21C91E for <thorntonjeremy@example.com>; Thu, 22 Jan 2009 17:00:48 +0000 (UTC) Received: from G6W0173.americas.hpqcorp.net (83.161.120.155) by G3W0630.americas.hpqcorp.net (83.161.120.155) with Microsoft SMTP Server (TLS) id 8.1.336.0; Thu, 22 Jan 2009 17:00:08 +0000 Received: from GVW1124EXC.americas.hpqcorp.net ([83.161.120.155]) by G6W0173.americas.hpqcorp.net ([83.161.120.155]) with mapi; Thu, 22 Jan 2009 17:00:07 +0000 From: "Garg, Mayank" <thorntonjeremy@example.com> To: Log4NET User <thorntonjeremy@example.com> Date: Thu, 22 Jan 2009 17:00:05 +0000 Subject: RE: Issues with Korean/Chinese locales in XmlLayout... Thread-Topic: Issues with Korean/Chinese locales in XmlLayout... Thread-Index: Acl7INH3E610V4dAS76JRLLDKEq6PAABlpHwAGJmHRA= Message-ID: <thorntonjeremy@example.com> References: <thorntonjeremy@example.com> <thorntonjeremy@example.com> In-Reply-To: <thorntonjeremy@example.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_DFD8836B64F74B489D48B163BFE9D55448F1DBDFEFGVW1124EXCame_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_DFD8836B64F74B489D48B163BFE9D55448F1DBDFEFGVW1124EXCame_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Nick, Thanks for your reply. Two queries: 1.I am able to do this but the string appears in a CDATA section as is, e.g= . for a Korean string, the string appears as the following in the XML file: <message><![CDATA[&amp;#xC751;&amp;#xC6A9;&amp;#x20; ]] ></message> The sting passed to the code is: "&#xC751;&#xC6A9;&#x20;" I saw in the code and there it calculates certain weights and depending on = the values it either writes the string as an escaped string or a CDATA sect= ion. My actual string is longer and thus because of a large number of "&"s,= my weightStringEscapes exceeds weightCData (which is only 12 because there= are no CDATA end section characters in the string). To avoid this, I forced my code to still write it as a escaped string and t= he result was the same except for the missing CDATA section's begin and en= d characters. I even tried writing decimal escapes i.e. writing &#<decimal value>; instea= d of &#x<hex value>; but the results are the same. What is the problem here? 2. We use two type of appenders one text and one XML, won't this solution c= reate a problem with the text file where the message would appear as XML es= caped string. What is the workaround to prevent this? Regards, Mayank ________________________________ From: Nick Durcholz [mailto:thorntonjeremy@example.com] Sent: Tuesday, January 20, 2009 7:44 PM To: Log4NET User Subject: RE: Issues with Korean/Chinese locales in XmlLayout... To output Chinese or Korean characters using XmlLayout you could try escapi= ng log messages before even sending them to the log4net ILog object. In C#= , something like the following is what I'm talking about: public class Foo { private ILog log =3D LogManager.GetLogger(typeof(Foo)); private void LogSomething(string message) { //replace the chinese yen symbol with its xml character escape sequ= ence //see http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_e= ntity_references //for more info on escape sequences log.Debug(message.Replace("\u00A5", "&#x00A5;")); } } That is a workaround that might work for you, but it sounds like an issue w= ith XmlLayout class IMO. XmlLayout is responsible for converting log messa= ges to xml, so it should correctly escape unicode characters for you and no= t require the caller to have knowledge of the log output format. For the build issue, it sounds like you are running into a strong naming is= sue. The private key used to sign log4net.dll is not distributed with the = source download packages. If you compile an application against log4net.dl= l that is distributed by Apache and later replace that with a modified log4= net.dll that you compiled, then you will get this error (because the strong= name keys are not the same). I would suggest that if you are going to modify the log4net source and comp= ile it yourself that you create a new strong name key and use that to sign = your modified version. You will then need to recompile everything that ref= erences log4net in your application (make sure it references the customized= dll at compile time). ________________________________ From: Garg, Mayank [mailto:thorntonjeremy@example.com] Sent: Tuesday, January 20, 2009 12:02 PM To: thorntonjeremy@example.com Subject: Issues with Korean/Chinese locales in XmlLayout... Hi, I am using v1.2.10 and having issues with Korean and Chinese locales. I am = using XmlLayout and in the XML log file, messages (contents of the element = "message") in Korean and Chinese languages appear as "????". I am using the= correct encoding "utf-8", however I tried with other possible encodings su= pporting Unicode but the problem did not get solved. I debugged the code and found that in Transform class, MaskXmlInvalidCharac= ters function escapes the valid Korean and Chinese characters as "?" charac= ters because it thinks they are invalid XML unicode characters, its basical= ly the following array defined in Transform class which is creating the pro= blem: private static Regex INVALIDCHARS=3Dnew Regex(@"[^\x09\x0A\x0D\x20-\xFF\u00= FF-\u07FF\uE000-\uFFFD]",RegexOptions.Compiled); Could anybody suggest a possible workaround for this? If I bypass the maski= ng step, the message appears correctly in the log file. Or, is this a bug w= hich should be solved in a certain manner? One more issue that I am facing is that we had included the log4net dll lon= g time back in our sources as a reference. Now, if I try to rebuild the dll from the log4net sources and try replacing= it with the older dll, our sources doesn't get built and the following com= piler error is thrown: Error 796 Unknown build error, 'The located assembly's manifest d= efinition does not match the assembly reference. (Exception from HRESULT: 0= x80131040)' I have tried the following things: 1.Building log4net sources with VS2005 and keeping the conditional compilat= ion sysmbols as NET;NET_2_0 as well as NET;NET_1_0 2.Building log4net sources with VS2008 and keeping the target framework as = 3.5 But nothing seems to work. The old log4net dll seems to have been built on VS2005 with conditional com= pilation sysmbols as NET;NET_2_0 and our sources are built using VS 2008 us= ing target framework as 3.5. What is it that I might be doing wrong? Initially I was getting errors rela= ted to strong names but I resolved it by generating the .snk file as mentio= ned on the Apache website and signing the dll. Please help. Regards, Mayank --_000_DFD8836B64F74B489D48B163BFE9D55448F1DBDFEFGVW1124EXCame_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" xmlns=3D"http://ww= w.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"Person= Name"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:#606420; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:Arial; color:windowtext;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1817264284;
{'source': 'Apache Software Foundation Public Mail Archives'}