Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 97542 invoked from network); 20 Jun 2008 12:37:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2008 12:37:03 -0000 Received: (qmail 8930 invoked by uid 500); 20 Jun 2008 12:37:04 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 8545 invoked by uid 500); 20 Jun 2008 12:37:04 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 8534 invoked by uid 99); 20 Jun 2008 12:37:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 05:37:03 -0700 X-ASF-Spam-Status: No, hits=0.3 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 graham.walsh-prestataire@calyon.com designates 194.4.140.23 as permitted sender) Received: from [194.4.140.23] (HELO SMTP1.calyon.com) (194.4.140.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 12:36:12 +0000 Received: from pegase.dcmc.creditlyonnais.fr ([194.4.140.12]) by SMTP1.calyon.com with ESMTP; 20 Jun 2008 14:36:54 +0200 Received: from astree.capitalmarkets.fr.cly ([194.4.140.126] [194.4.140.126]) by pegase.dcmc.creditlyonnais.fr with ESMTP for log4net-user@logging.apache.org; Fri, 20 Jun 2008 14:38:54 +0200 Received: from MXMXPA21.MSX.CIB (MXMXPA21.MSX.CIB [172.30.144.250]) by astree.capitalmarkets.fr.cly with ESMTP for log4net-user@logging.apache.org; Fri, 20 Jun 2008 14:35:26 +0200 Received: from MXMXPA25.MSX.CIB ([172.30.144.43]) by MXMXPA21.MSX.CIB with Microsoft SMTPSVC(6.0.3790.3959); Fri, 20 Jun 2008 14:35:25 +0200 Received: from MXCU02MX1.MSX.CIB ([10.146.138.34]) by MXMXPA25.MSX.CIB with Microsoft SMTPSVC(6.0.3790.3959); Fri, 20 Jun 2008 14:35:26 +0200 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: RE: Winforms Date: Fri, 20 Jun 2008 14:35:25 +0200 Message-Id: <61FE069E88B10C44AB73B6CDF37A81C30597F196@MXCU02MX1.MSX.CIB> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Winforms Thread-Index: AcjGbF5S9835VXpdSgOT/eAtT5F0NQAjRc1wAAkNaLAAAGF0IAJ+5yaAABAB7JAAAeoBYABTYB9AAAar4KAAAY7FsAAASGKA References: <17647324.post@talk.nabble.com> <61FE069E88B10C44AB73B6CDF37A81C30597F126@MXCU02MX1.MSX.CIB> <427F037CD0275B40836A1F6315F5EAC85802467C1A@exc.prosa.local> <61FE069E88B10C44AB73B6CDF37A81C30597F12B@MXCU02MX1.MSX.CIB> <61FE069E88B10C44AB73B6CDF37A81C30597F17C@MXCU02MX1.MSX.CIB> <61FE069E88B10C44AB73B6CDF37A81C30597F18A@MXCU02MX1.MSX.CIB> <61FE069E88B10C44AB73B6CDF37A81C30597F193@MXCU02MX1.MSX.CIB> <61FE069E88B10C44AB73B6CDF37A81C30597F195@MXCU02MX1.MSX.CIB> From: Graham Walsh To: "Log4NET User" X-OriginalArrivalTime: 20 Jun 2008 12:35:26.0010 (UTC) FILETIME=[1D8241A0:01C8D2D2] 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_01C8D2D2.1CEC0E3D" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8D2D2.1CEC0E3D Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Im in awe of this stuff. Would have taken me weeks to get all this done with c++.=20 =20 =20 ________________________________ From: Rob Prouse [mailto:Rob.Prouse@Ivara.com]=20 Sent: Friday, June 20, 2008 2:28 PM To: Log4NET User Subject: RE: Winforms =20 That is just a confusing artefact of Microsoft's code commenting. That is part of the comment like /// that indicates a code example follows. It is not part of the configuration. =20 Rob =20 From: Graham Walsh [mailto:graham.walsh-prestataire@calyon.com]=20 Sent: June-20-08 7:43 AM To: Log4NET User Subject: RE: Winforms =20 Its ok I sorted it out. Dunno what=20 =20 =20 Does exactly but commented out everything works as expected=20 =20 G =20 =20 ________________________________ From: WALSH, Graham (CALYON)=20 Sent: Friday, June 20, 2008 12:22 PM To: Log4NET User Subject: RE: Winforms =20 Hi again, =20 That utility works a treat. Thanks a million Rob and Stephanie!=20 =20 I have just two minor points (cosmetic). =20 1) I have my log output in the rich text box (whose background colour is grey). My log output appears but its not in colour. I know its not essential, but it adds to user satisfaction to see errors in red. Any ideas why this is this case? Am I badly configured?=20 =20 This is what my configuration section looks like; =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 Thanks a million. This stuff rocks =20 G =20 ________________________________ From: WALSH, Graham (CALYON)=20 Sent: Wednesday, June 18, 2008 6:45 PM To: 'Log4NET User' Subject: RE: Winforms =20 Thanks dude, I think I got it... =20 =20 Stephanie Giovannini =20 Subject Rich text box appender=20 Date Thu, 24 Apr 2008 16:12:24 GMT =20 =20 =20 That'll be my reading on my way home the lousy sweaty French metro system :-)=20 =20 G =20 ________________________________ From: Rob Prouse [mailto:Rob.Prouse@Ivara.com]=20 Sent: Wednesday, June 18, 2008 5:51 PM To: Log4NET User Subject: RE: Winforms =20 Graham, =20 If you check back in the archives for this list about a month, someone posted an appender that writes to a RichTextBox. I used it and it works well. It allows you to colourize your output which is nice for the different log levels. =20 If you can't find it, let me know and I will repost. =20 Rob Prouse =20 From: Graham Walsh [mailto:graham.walsh-prestataire@calyon.com]=20 Sent: June-18-08 4:15 AM To: Log4NET User Subject: Winforms =20 Hi, =20 Could anybody tell me where is the best starting point to integrate log4net into a winforms application ? I intend to have a UPD appender configured and have my log information displayed in a textbox. Is a textbox the best control to go with? How do I attach my log output to the control I ultimately decide upon? =20 =20 Thanks for any info/replies. Have a nice day =20 Graham =20 ------_=_NextPart_001_01C8D2D2.1CEC0E3D Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Im in awe of = this stuff. Would have taken me weeks to get all this done with c++. =

 =

 =


From: Rob Prouse [mailto:Rob.Prouse@Ivara.com]
Sent: Friday, June 20, = 2008 2:28 PM
To: Log4NET User
Subject: RE: = Winforms

 

That is just a = confusing artefact of Microsoft’s code commenting. That is part of the = comment like /// <summary> that indicates a code example follows. It is not = part of the configuration.

 

Rob

 

From: Graham Walsh [mailto:graham.walsh-prestataire@calyon.com]
Sent: June-20-08 7:43 = AM
To: Log4NET User
Subject: RE: = Winforms

 

Its ok I sorted = it out. Dunno what

 =

    <code lang=3D"XML" escaped=3D"true">

 =

Does exactly but commented out everything works as expected

 =

G

 =

 =


From: WALSH, Graham (CALYON)
Sent: Friday, June 20, = 2008 12:22 PM
To: Log4NET User
Subject: RE: = Winforms

 

Hi = again,

 

That utility = works a treat. Thanks a million Rob and Stephanie!

 =

I have just two = minor points (cosmetic).

 =

1)       I have my log output in the rich text box (whose background = colour is grey). My log output appears but its not in colour. I know its not essential, but it adds to user satisfaction to see errors in red. Any = ideas why this is this case? Am I badly configured?

 

This is what my configuration section looks = like;

 

 

 

  <appender name=3D"MainFormRichTextAppender" type=3D"log4net.Appender.RichTextBoxAppender&q= uot;>

    <file value=3D"logs/RichTextAppenderRocks.log" = />

    <appendToFile value=3D"true" />

    <maximumFileSize value=3D"25000KB" = />

    <maxSizeRollBackups value=3D"2" />

    <layout type=3D"log4net.Layout.PatternLayout">

      <conversionPattern value=3D"%date [%-2thread] %-5level %-70logger - = %message%newline" = />

    </layout>

    <code lang=3D"XML" escaped=3D"true">

      <mapping>

        = <level value=3D"DEBUG" = />

        = <textColorName value=3D"DarkGreen" = />

 

      </mapping>

      <mapping>

        = <level value=3D"INFO" = />

        = <textColorName value=3D"ControlText" = />

 

      </mapping>

      <mapping>

        = <level value=3D"WARN" = />

        = <textColorName value=3D"Blue" = />

 

      </mapping>

      <mapping>

        = <level value=3D"ERROR" = />

        = <textColorName value=3D"Red" = />

        = <bold value=3D"true" = />

        = <pointSize value=3D"10" = />

 

      </mapping>

      <mapping>

        = <level value=3D"FATAL" = />

        = <textColorName value=3D"Black" = />

        = <backColorName value=3D"Red" = />

        = <bold value=3D"true" = />

        = <pointSize value=3D"12" = />

        = <fontFamilyName value=3D"Lucida Console" = />

 

      </mapping>

    </code>

    </appender>

 

 

 =

Thanks a million. This stuff = rocks

 

G

 


From: WALSH, Graham (CALYON)
Sent: Wednesday, June 18, = 2008 6:45 PM
To: 'Log4NET User'
Subject: RE: = Winforms

 

Thanks dude, I = think I got it…

 =

 =

Stephanie = Giovannini <giovannini-s....@swbell.net>

Subject Rich = text box appender

Date Thu, 24 Apr = 2008 16:12:24 GMT

 =

 =

 =

That’ll be = my reading on my way home the lousy sweaty French metro system = J

 =

G

 =


From: Rob Prouse [mailto:Rob.Prouse@Ivara.com]
Sent: Wednesday, June 18, = 2008 5:51 PM
To: Log4NET User
Subject: RE: = Winforms

 

Graham,

 

If you check back in = the archives for this list about a month, someone posted an appender that = writes to a RichTextBox. I used it and it works well. It allows you to colourize = your output which is nice for the different log = levels.

 

If you can’t = find it, let me know and I will repost.

 

Rob = Prouse

 

From: Graham Walsh [mailto:graham.walsh-prestataire@calyon.com]
Sent: June-18-08 4:15 = AM
To: Log4NET User
Subject: = Winforms

 

Hi,

 =

Could anybody = tell me where is the best starting point to integrate log4net into a winforms application ?  I intend to have a UPD appender configured and have = my log information displayed in a textbox. Is a textbox the best control to go = with? How do I attach my log output to the control I ultimately decide = upon?

 =

 =

Thanks for any info/replies. Have a nice day

 =

Graham=

 =

------_=_NextPart_001_01C8D2D2.1CEC0E3D-- ------------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--