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

NLog.LayoutRenderers.Wrappers.ReplaceLayoutRendererWrapper

Replaces a string in the output of another layout with another string.
public bool IgnoreCase { get; set; }

Gets or sets a value indicating whether to ignore case.

public string ReplaceWith { get; set; }

Gets or sets the replacement string.

public string SearchFor { get; set; }

Gets or sets the text to search for.

public bool WholeWords { get; set; }

Gets or sets a value indicating whether to search for whole words