The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.
| Author |
Messages |
|
suedeuno
 |
| 12/01/2008 5:32 PM |
|
I have two projects setup, one uses Unity depencency injection and the other uses StructureMap. The project using Unity will log both from unit tests and from the web. The StructureMap project will only log from the unit test.
As a note, when I call 'log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);' from the Unity project the LogManager Repository count is 0.
When I call the same line from the StructureMap project unit test the repository count is also 0, but from the Structure Map web the repository count is 1 with 59 values. I'm assuming this is a key to why it's not working within the web of the structure map project. Can anyone provide any help in debugging/fixing this issue?
|
|
|
|
|
suedeuno
 |
| 12/01/2008 11:55 PM |
|
I had to call XmlConfigurator.Configure(); within the global.asax file for it to work due to StructureMap. Didn't have the problem with Unity.
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|