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

NLog.Config.ConfigurationItemFactory

public sealed class ConfigurationItemFactory
Provides registration information for named items (targets, layouts, layout renderers, etc.) Supports creating item-instance from their type-alias, when parsing NLog configuration
public static ConfigurationItemFactory Default { get; set; }

Gets or sets default singleton instance of ConfigurationItemFactory.

Gets the ambient property factory.

public IFactory<Filter> FilterFactory { get; }

Gets the Filter factory.

public IJsonConverter JsonConverter { get; set; }

Obsolete and replaced by RegisterJsonConverter with NLog v5.2. Gets or sets the JSON serializer to use with JsonLayout

public IFactory<Layout> LayoutFactory { get; }

Gets the Layout factory.

Gets the LayoutRenderer factory.

public bool? ParseMessageTemplates { get; set; }

Obsolete and replaced by ParseMessageTemplates with NLog v6.2. Perform message template parsing and formatting of LogEvent messages (True = Always, False = Never, Null = Auto Detect)

public IFactory<Target> TargetFactory { get; }

Gets the Target factory.

Gets the TimeSource factory.

Initializes a new instance of the ConfigurationItemFactory class.

public void Clear()

Clears the contents of all factories.

public void RegisterItemsFromAssembly(Assembly assembly)

Obsolete since dynamic assembly loading is not compatible with publish as trimmed application. Registers named items from the assembly.

public void RegisterItemsFromAssembly(Assembly assembly, string itemNamePrefix)

Obsolete since dynamic assembly loading is not compatible with publish as trimmed application. Registers named items from the assembly.

public void RegisterType(Type type, string itemNamePrefix)

Obsolete since dynamic type loading is not compatible with publish as trimmed application. Registers the type.