Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 30412 invoked from network); 18 Jul 2005 20:09:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2005 20:09:02 -0000 Received: (qmail 16005 invoked by uid 500); 18 Jul 2005 20:09:02 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 15752 invoked by uid 500); 18 Jul 2005 20:09:01 -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 15739 invoked by uid 99); 18 Jul 2005 20:09:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2005 13:09:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,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 kronos.neoworks.co.uk) (80.168.17.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2005 13:08:56 -0700 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: WMI Events Date: Mon, 18 Jul 2005 21:09:14 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WMI Events Thread-Index: AcWDEy3io5UTAoyZQGqrHGPc364SCgIvhAAQ From: "Nicko Cadell" To: "Log4NET User" Cc: "madhu k" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Writing your own WMI appender should not be too tricky. The .NET framework has some nice features to allow you to define a .NET type that defines a WMI event schema, instances of this type can then be fired via WMI. You will need to define one of these objects that can be Fired via WMI. Then implement your own appender (have a look at the DebugAppender.cs in the log4net source for a good starting point) which takes a LoggingEvent and uses it to populate your WMI object, then just fire the WMI object. Cheers, Nicko > -----Original Message----- > From: madhu k [mailto:kmadhu_babu@india.com]=20 > Sent: 07 July 2005 17:41 > To: nicko@apache.org > Subject: WMI Events >=20 > Hi Nicko, >=20 > In my application am using log4net for logging. >=20 > I want to log a message as WMI event... > i searched alot for this but i did't get any help >=20 > if any solutions are exist please give the links... >=20 > are any proper approach to do it... >=20 >=20 >=20 > thanking u >=20 >=20 > madhubabu k >=20 >=20 > -- > India.com free e-mail - www.india.com.=20 > Check out our value-added Premium features, such as an extra=20 > 20MB for mail storage, POP3, e-mail forwarding, and ads-free=20 > mailboxes! >=20