<PackageReference Include="NLog" Version="6.2.0" />

NLog.Config.XmlLoggingConfiguration

Loads NLog LoggingConfiguration from xml-file
public bool AutoReload { get; set; }

Gets or sets a value indicating whether any of the configuration files should be watched for changes and reloaded automatically when changed.

public IEnumerable<string> AutoReloadFileNames { get; }

Gets the collection of file names which should be watched for changes by NLog. This is the list of configuration files processed. If the autoReload attribute is not set it returns empty collection.

public XmlLoggingConfiguration(string fileName)

Initializes a new instance of the XmlLoggingConfiguration class.

public XmlLoggingConfiguration(string fileName, LogFactory logFactory)

Initializes a new instance of the XmlLoggingConfiguration class.

Initializes a new instance of the XmlLoggingConfiguration class.

public XmlLoggingConfiguration(TextReader xmlSource, string filePath)

Initializes a new instance of the XmlLoggingConfiguration class.

public XmlLoggingConfiguration(TextReader xmlSource, string filePath, LogFactory logFactory)

Initializes a new instance of the XmlLoggingConfiguration class.

Initializes a new instance of the XmlLoggingConfiguration class.

public XmlLoggingConfiguration(XmlReader reader, string fileName)

Initializes a new instance of the XmlLoggingConfiguration class.

public XmlLoggingConfiguration(XmlReader reader, string fileName, LogFactory logFactory)

Initializes a new instance of the XmlLoggingConfiguration class.

public static XmlLoggingConfiguration CreateFromXmlString(string xml)

Parse XML string as NLog configuration

public static XmlLoggingConfiguration CreateFromXmlString(string xml, LogFactory logFactory)

Parse XML string as NLog configuration

public static IEnumerable<string> GetCandidateConfigFilePaths()

Obsolete and replaced by Setup and LoadConfigurationFromFile with NLog v5.2. Get file paths (including filename) for the possible NLog config files.

public static void ResetCandidateConfigFilePath()

Obsolete and replaced by Setup and LoadConfigurationFromFile with NLog v5.2. Clear the candidate file paths and return to the defaults.

public static void SetCandidateConfigFilePaths(IEnumerable<string> filePaths)

Obsolete and replaced by Setup and LoadConfigurationFromFile with NLog v5.2. Overwrite the paths (including filename) for the possible NLog config files.