I have a dll that I recently put log4net logging into. It is called
by many different executables. So I wanted to find out what is the
minimum I must do so that an exe will cause the logging to happen in
the dll.
Add reference to log4net
Add [assembly:log4net.Config.XmlConfigurator(ConfigFile="
I am using an adonetappender. THe appender is defined an a separate
config file, and I use assembly attributes to load it.
In my code, early on, I get the appender and set its connection string.
But when I call ActivateOptions, I get an error - it seems the
appender is trying to use the old, dummy
I believe this will work:
If not this exactly, then search for acceptOnMatch and see what the
right settings are.
Cheers,
Daniel Williams
On Sat, Jul 19, 2008 at 10:55 PM, Alexander Wolff
<[EMAIL PROTECTED]> wrote:
> the following filter:
>
>
>
>
>
in a section like
this:
This will take the output of log4net and put it into a simple log
file. Then you should be able to see just what it is that log4net is
getting stuck on.
Cheers,
Daniel Williams
On Wed, Aug 13, 2008 at 3:35 PM, Debashish <[EMAIL PROTEC
s in your app's working folder. There are many examples out on the
web. Here is one that will output to the console if you're running
the app from there:
Cheers,
Daniel Williams
On Mon, Aug 25, 2008 at 7: