net-commons/common-logging — pull request #41 by csbubbles (2014-02-20 23:29:31+00:00)
Title: Fix for LogManager.GetCurrentClassLogger not creating loggers properly for constructors

LogManager.GetCurrentClassLogger() did not honor calls from constructors of inherited classes. For example, if you had two classes as follows:

class A
{
protected ILog log = LogManager.GetCurrentClassLogger();

public DoSomething()
{
log.Info("Doing something...");
}
}

class B : A
{
}

A a = new A();
B b = new B();

a.DoSomething();
b.DoSomething();

the both calls for "a" and "b" objects would log the message for the same logger (class A) which is not expected. This commit fixes this issue and creates different loggers for objects of descendent classes.