views:

552

answers:

2

In VS2008, C#, I've created a unit test (VS unit test) that calls some code which in turn calls Log4Net and logs some information. This works.

If I create a thread in the unit test to call the same code I'm getting "Failed to parse config file" exception from Log4Net.

Any ideas why it would not be able to parse the config file from the created thread but can from the main thread?

A: 

Log4Net is unfortunately full of bugs and not released for like 3 years now... I have been forced to build my own logging framework because of this.

Andrei Rinea
Could you give more details of these. We use log4net in a large multithreaded enterprise application and have not noticed any significant issues.
Preet Sangha
I don't think it is full of bugs. It is still widely used, just not maintained.
RichardOD
+1  A: 

Log4Net appears to use thread-local storage.

http://www.brianlow.com/index.php/2007/04/17/log4net-aspnet/

Cat