Adding appenders programmatically

2006-02-23 Thread Vladimir Kovalenko
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?        

custom level

2006-02-23 Thread Cheng
Is there any easy way to add a new level between ERROR and OFF? Thanks

RE: Adding appenders programmatically

2006-02-23 Thread Nicko Cadell
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

RE: a question about .Net 2.0 and log4net

2006-02-23 Thread Nicko Cadell
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

RE: custom level

2006-02-23 Thread Nicko Cadell
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

Re: .NET 2.0

2006-02-23 Thread LadyShug
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