Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 72909 invoked from network); 21 Jun 2005 15:13:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2005 15:13:58 -0000 Received: (qmail 3630 invoked by uid 500); 21 Jun 2005 15:13:56 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 3591 invoked by uid 500); 21 Jun 2005 15:13:56 -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 3577 invoked by uid 99); 21 Jun 2005 15:13:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2005 08:13:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Tue, 21 Jun 2005 08:13:57 -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: Logger/Appender that listens for events, then logs messages Date: Tue, 21 Jun 2005 16:13:58 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Logger/Appender that listens for events, then logs messages Thread-Index: AcV100JyXE3jR2unTOeILbHjLGuc2gAnqPIQ From: "Nicko Cadell" To: "Log4NET User" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I don't see any reason why that would not work. The only thing special about a plugin is that it can be loaded via the config file and attached to a repository, other than that it is just your custom code. I guess that a plugin should log into the repository that it is attached to rather than calling the LogManager to get a logger. Nicko > -----Original Message----- > From: Ron Grabowski [mailto:rongrabowski@yahoo.com]=20 > Sent: 20 June 2005 21:04 > To: Log4NET User > Subject: Re: Logger/Appender that listens for events, then=20 > logs messages >=20 > Could I extend PluginSkeleton and include code to register for the > event(s) I want to capture? When the event is fired my plugin=20 > would handle recording an appropriate log message ???=20 >=20 > --- Niall Daley wrote: >=20 > > Ron, > > Log4Net doesn't support registering for events, it just=20 > logs when you=20 > > tell it to. I think the most straigh forward way to implement this=20 > > would be to make a simple event sink that logs via log4net and=20 > > register that on the events you are interested in. > >=20 > > On Tue, 7 Jun 2005, Ron Grabowski wrote: > >=20 > > > Suppose I have an object that when processes things internally > > raises > > > events to give status updates. > > > > > > Is it possible to configure log4net in such a way that it=20 > registers > > for > > > these events then logs the message through the log4net framework? > > > > > > I'd like to do this via the xml config file. > > > > > > > > > > >=20 > > -- > > Niall Daley > > Log4net Dev > >=20 >=20 >=20