Re: Issue with Custom Appender

2016-11-04 Thread Dominik Psenner
Glad you were able to sort this out! Cheers On 2016-11-04 14:32, DaveS wrote: Solved. I had a reference to version 1.2.10 which was causing this version to be loaded from the GAC. -- View this message in context: http://apache-logging.6191.n7.nabble.com/Issue-with-Custom-Appender

Re: Issue with Custom Appender

2016-11-04 Thread DaveS
Solved. I had a reference to version 1.2.10 which was causing this version to be loaded from the GAC. -- View this message in context: http://apache-logging.6191.n7.nabble.com/Issue-with-Custom-Appender-tp70625p70639.html Sent from the Log4net - Users mailing list archive at Nabble.com.

Re: Issue with Custom Appender

2016-11-04 Thread DaveS
I am building the custom appender against: log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a And this is the same DLL that is being loaded by the application. I have uploaded the log file. Dominik Psenner wrote > Hi Dave, > > would you please send us a the

Re: Issue with Custom Appender

2016-11-04 Thread Dominik Psenner
Hi Dave, would you please send us a the complete log4net internal logs including debug logs? Anyway it smells like an issue with incompatible binaries. You could check if both the log4net assembly that your custom appender was linked against and the log4net assembly that your application

Issue with Custom Appender

2016-11-04 Thread DaveS
I have created a custom appender to work alongside two other appenders. The problem I have having is that the custom appender isn't receiving any logs. My custom appender simply inherits from AppenderSkeleton. However, I have also tried creating my own appender that implements IAppender.

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?

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

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

Pass in object to custom appender programmatically?

2011-07-14 Thread SoxFan44
Hi, I wrote a custom appender that needs a custom object to be passed in to it. I see how I can use the config file to pass in string values, but is there a way to programmatically pass in objects? Ex: public class MyAppender : AppenderSkeleton { public MyCustomObject obj { get; set

Re: How to get line number and file name in custom Appender?

2010-05-07 Thread ITemplate
> But you better should not log this. Use Stacks/Properties instead to >>>> localize logging point in the source. It may not be as accurate as >>>> StackTrace but it is appropriate and reliable. >>>> >>>> On Tue, May 4, 2010 at 5:50 PM, ITemplate

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread ITemplate
d not log this. Use Stacks/Properties instead to >>> localize logging point in the source. It may not be as accurate as >>> StackTrace but it is appropriate and reliable. >>> >>> On Tue, May 4, 2010 at 5:50 PM, ITemplate wrote: >>>> >>

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread Yuriy Taraday
as >> StackTrace but it is appropriate and reliable. >> >> On Tue, May 4, 2010 at 5:50 PM, ITemplate wrote: >>> >>> Hi, >>> >>> Using a file appender, I can write the source code line number in my log >>> file using "%line&qu

RE: How to get line number and file name in custom Appender?

2010-05-04 Thread Radovan Raszka
custom Appender? Some stacktrace information like line numbers are not available in release builds. - Original Message From: ITemplate To: log4net-user@logging.apache.org Sent: Tue, May 4, 2010 4:24:49 PM Subject: Re: How to get line number and file name in custom Appender? Hi Yuriy

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread Ron Grabowski
Some stacktrace information like line numbers are not available in release builds. - Original Message From: ITemplate To: log4net-user@logging.apache.org Sent: Tue, May 4, 2010 4:24:49 PM Subject: Re: How to get line number and file name in custom Appender? Hi Yuriy, Thanks for

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread ITemplate
and reliable. > > On Tue, May 4, 2010 at 5:50 PM, ITemplate wrote: >> >> Hi, >> >> Using a file appender, I can write the source code line number in my log >> file using "%line". But if I have a custom Appender with the >> "LoggingEvent&quo

Re: How to get line number and file name in custom Appender?

2010-05-04 Thread Yuriy Taraday
e and reliable. On Tue, May 4, 2010 at 5:50 PM, ITemplate wrote: > > Hi, > > Using a file appender, I can write the source code line number in my log > file using "%line". But if I have a custom Appender with the "LoggingEvent" > - where is that informat

How to get line number and file name in custom Appender?

2010-05-04 Thread ITemplate
Hi, Using a file appender, I can write the source code line number in my log file using "%line". But if I have a custom Appender with the "LoggingEvent" - where is that information stored and retrievable? -- Werner -- View this message in context: http://old.nabble

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

Custom Appender - Clients still require Log4Net reference?

2007-10-12 Thread richard . collette
I have a custom log implementation (baseless LogManager, extended ILog and extended LogImpl). It's working fine. The only problem is that the projects which reference my custom logger, also seem to require that I specifically add a reference to Log4Net. Is there a way to avoid this? In the m

Re: add custom appender separate from log4net dll

2004-12-10 Thread Tim Weaver
Simon, I created a custom appender outside of the log4net project. Create the custom appender in its own project. Reference the log4net assembly and setup the namespaces accordingly. namespace Global.Diagnostics.log4net.Custom.Appender { /// /// Summary description for

add custom appender separate from log4net dll

2004-12-09 Thread Simon Wallis
Hi, I wrote a custom appender, put it in the Appenders folder and recompiled the log4net dll. Is there a better way to do this? I think my custom log4net.dll is causing me problems and compatibility issues. How can I add a new appender and not modify the core dll? Should it go in it's

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
e, an XML message. At this point you have your XML and you can do whatever you want with it. What type of data do you want to "pass in"? Do you mean to pass in as your custom appender configuration, or pass in when you call log.Debug(...), etc? If you need an example of a custom appen

Custom Appender

2004-11-22 Thread ian
Hi I need to send in XML data which I then break up and store in a database - any ideas as to the best way to do this? I'm looking to create a custom appender, similar to the current ADONet appender by extending the AppenderSkeleton class, and implementing the Append method. The troub