I need to add programmatically references to appenders to a
specific logger. In other words I want to configure the following logger from
code. Is it possible?
Is there any easy way to add a new level between ERROR and OFF?
Thanks
Yes it is possible to programmatically configure log4net. There are a
number of different ways of doing it.
1) Store your custom config in a file or stream and call one of the
log4net.Config.XmlConfigurator.Configure() methods to load the config
file.
2) Create your custom config as an in memory
Ken,
The http://logging.apache.org/log4net/release/framework-support.html
page lists the frameworks that we build log4net for. We build specific
versions for each framework to take advantage of new features that are
available in new frameworks. This page lists the minor differences
between the bui
You can define a new level in the config file.
...
You can then refer to the level in the rest of the config file.
Levels have a numeric value ERROR is 7. OFF is Int32.MaxValue.
Therefore 8 is between ERROR and OFF.
Cheers,
Nicko
> -Original Message-
> Fr
Great... I've been having issues during the conversion process when trying to
open the log4net project with visual studio 2005 (.net 2.0)
could you please forward me the source you used