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:[EMAIL PROTECTED] > Sent: 20 June 2005 21:04 > To: Log4NET User > Subject: Re: Logger/Appender that listens for events, then > logs messages > > Could I extend PluginSkeleton and include code to register for the > event(s) I want to capture? When the event is fired my plugin > would handle recording an appropriate log message ??? > > --- Niall Daley <[EMAIL PROTECTED]> wrote: > > > Ron, > > Log4Net doesn't support registering for events, it just > logs when you > > tell it to. I think the most straigh forward way to implement this > > would be to make a simple event sink that logs via log4net and > > register that on the events you are interested in. > > > > On Tue, 7 Jun 2005, Ron Grabowski wrote: > > > > > 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 > registers > > for > > > these events then logs the message through the log4net framework? > > > > > > I'd like to do this via the xml config file. > > > > > > > > > > > > > -- > > Niall Daley > > Log4net Dev > > > >
