Constructor that configures NLog using the input path to the desired nlog configuration xml file.
Namespace: LaurelBridge.DCFExamples.NLogAdapter
Assembly: ExampleNLogAdapter (in ExampleNLogAdapter.dll) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
Syntax
C#
public NLogLogAdapter( string cfgFilePath = null, IFormatProvider formatProvider = null )
Parameters
- cfgFilePath (Optional)
- Type: SystemString
The path of the xml configuration file to use to configure NLog. If the file is null or missing, the already loaded nlog configuration will be used. - formatProvider (Optional)
- Type: SystemIFormatProvider
The format provider to use when logging messages to nlog, which if set to null will use CultureInfo.InvariantCulture.
Remarks
See Also