Re: Custom appender instantiation

2015-03-06 Thread Joseph L. Casale
> I have a custom appender that uses parameters from the App.config file, > however > I need to call an internal method after instantiation once the fields have > been populated. > > I see PreAppendCheck however I only need this done once. Does such a facility > exist? Sorry for the noise folk

Re: Custom appender instantiation

2015-03-06 Thread Joseph L. Casale
Trying that again... I have a custom appender that uses parameters from the App.config file, however I need to call an internal method after instantiation once the fields have been populated. I see PreAppendCheck however I only need this done once. Does such a facility exist? Thanks! jlc

Re: Custom Appender - Clients still require Log4Net reference?

2007-10-12 Thread Peter Drier
If you extend a class, then that classes definition is part of your definition, and thus the extended class must be available to anyone using your class in order to compile. If you completely wrap a class and translate all calls to and from it, then it would not be needed by anyone referencing you

RE: Custom Appender

2004-11-25 Thread Nicko Cadell
> To: log4net-user@logging.apache.org > Subject: Re: Custom Appender > > Thanks for that - I was thinking along the lines of pass my > XML in as the message. The only problem with that was the > fact that it didn't seem to fit in with the config > 'philosop

Re: Custom Appender

2004-11-24 Thread Simon Wallis
f the sample ADO appender. > >Blimey, sorry to go on and on! > >Yes, any example code would be great - please pass it on, and many thanks >for your email > >Regards > >Ian > > > > > > >-Original Message- >From: Simon Wallis [mailto:[EMAIL

Re: Custom Appender

2004-11-24 Thread Ian Bell
OTECTED] Sent: 22 November 2004 18:26 To: log4net-user@logging.apache.org; [EMAIL PROTECTED] Subject: Re: Custom Appender Hi Ian, No, you don't need to do anything to the LoggingEvent class. You create your own appender and override the Append(LoggingEvent loggingEvent) method. In this function you

RE: Custom Appender

2004-11-22 Thread Ian Bell
PROTECTED] Sent: 22 November 2004 18:26 To: log4net-user@logging.apache.org; [EMAIL PROTECTED] Subject: Re: Custom Appender Hi Ian, No, you don't need to do anything to the LoggingEvent class. You create your own appender and override the Append(LoggingEvent loggingE

Re: Custom Appender

2004-11-22 Thread Simon Wallis
Hi Ian, No, you don't need to do anything to the LoggingEvent class. You create your own appender and override the Append(LoggingEvent loggingEvent) method. In this function you can access loggingEvent.MessageObject, which will give you the message you logged from your code -- in your case, an