You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by suedeuno <su...@yahoo.com> on 2008/12/01 17:32:06 UTC

Logging issue, Repository count is 1

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?
-- 
View this message in context: http://www.nabble.com/Logging-issue%2C-Repository-count-is-1-tp20774508p20774508.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Re: Logging issue, Repository count is 1

Posted by suedeuno <su...@yahoo.com>.
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. 

-- 
View this message in context: http://www.nabble.com/Logging-issue%2C-Repository-count-is-1-tp20774508p20782493.html
Sent from the Log4net - Users mailing list archive at Nabble.com.