I have the following class
setup. The Logger
should have the name *.UsedClass
and not *.BaseClass
. Is this possible to get it working from the BaseClass
or must I instantiate the Logger
from the most derivated class?
public abstract class BaseClass
{
public Logger Logger { get; }
protected BaseClass()
{
Logger = LogManager.GetCurrentClassLogger(GetType());
}
}
public abstract class ExtendedClass : BaseClass
{
}
public class UsedClass : ExtendedClass
{
}