Logger(Type, String) Constructor

Initializes a new instance of the Logger class using a logger type and configuration file name.

Definition

Namespace: Logging.Helper
Assembly: Logging.Helper (in Logging.Helper.dll) Version: 2.0.6
C#
public Logger(
	Type loggerType,
	string configFile = ""
)

Parameters

loggerType  Type
Type to be used as the name of the logger to retrieve.
configFile  String  (Optional)
Logging configuration file name to use.

Exceptions

NLog.NLogConfigurationExceptionThrown if the NLog configuration is invalid.

See Also