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
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.
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
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
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.
> 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?
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
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
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
> 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
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:
>>>>
>>
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
27 matches
Mail list logo