LogManager
class has two methods: GetLogger
and GetCurrentClassLogger
, with an overload taking parameter Type loggerType
public static Logger GetLogger(string name, Type loggerType)
public static Logger GetCurrentClassLogger(Type loggerType)
Documentation states that loggerType
is 'the type of the logger to create. The type must inherit from NLog.Logger.'
What is the purpose of such overloads? Why may I need to create loggers of inherited types?