Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 77298 invoked from network); 29 May 2006 22:01:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 May 2006 22:01:25 -0000 Received: (qmail 56342 invoked by uid 500); 29 May 2006 22:01:23 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 56312 invoked by uid 500); 29 May 2006 22:01:23 -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 56301 invoked by uid 99); 29 May 2006 22:01:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2006 15:01:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of nicko@neoworks.com designates 80.168.17.114 as permitted sender) Received: from [80.168.17.114] (HELO hermes.neoworks.co.uk) (80.168.17.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 May 2006 15:01:22 -0700 Received: from kronos.neoworks.co.uk (kronos.neoworks.co.uk [10.0.0.132]) by hermes.neoworks.co.uk (8.13.1/8.13.1) with ESMTP id k4TLieZe004324 for ; Mon, 29 May 2006 22:44:46 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Subject: RE: how to get host name? Date: Mon, 29 May 2006 23:00:52 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to get host name? Thread-Index: AcZzleMm+/Nsy0ofQe2lI+bQnpz74gP1SrHg From: "Nicko Cadell" To: "Log4NET User" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The %property pattern was added in version 1.2.9. In older versions you must use %P (capital P). If possible it is recommended that you upgrade to the latest version of log4net.=20 Cheers, Nicko > -----Original Message----- > From: Cheng [mailto:chenghf@gmail.com]=20 > Sent: 09 May 2006 19:02 > To: Log4NET User > Subject: how to get host name? >=20 > I am using AdoNetAppender. I want to log the name of the=20 > machine that is running the application. >=20 > I tried following but doesn't work: > > value=3D"String" /> type=3D"log4net.Layout.PatternLayout"> > =20 > >=20 > %p is interpreted as level, so what was logged into the database was: > DEBUGroperty{log4net:HostName} >=20 > so my question is what conversionPattern should I use to get=20 > host name? > and where can I see all the conversionPattern values available? >=20 >=20