Monday, May 21, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

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.

Subject: Logging issue, Repository count is 1
Prev Next
You are not authorized to post a reply.

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.
Forums > Log4Net > Log4Net Mail archive > Logging issue, Repository count is 1



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement