| ConfigurationItemFactoryParseMessageTemplates Property |
Perform message template parsing and formatting of LogEvent messages (True = Always, False = Never, Null = Auto Detect)
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public bool? ParseMessageTemplates { get; set; }
Public Property ParseMessageTemplates As Boolean?
Get
Set
Dim instance As ConfigurationItemFactory
Dim value As Boolean?
value = instance.ParseMessageTemplates
instance.ParseMessageTemplates = value
member ParseMessageTemplates : Nullable<bool> with get, set
Property Value
Type:
NullableBooleanRemarks
- Null (Auto Detect) : NLog-parser checks
Message for positional parameters, and will then fallback to string.Format-rendering.
- True: Always performs the parsing of
Message and rendering of
FormattedMessage using the NLog-parser (Allows custom formatting with
ValueFormatter)
- False: Always performs parsing and rendering using string.Format (Fastest if not using structured logging)
See Also