 | ConfigurationItemFactoryParseMessageTemplates Property |
Note: This API is now obsolete.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax[ObsoleteAttribute("Instead use NLog.LogManager.Setup().SetupSerialization(s => s.ParseMessageTemplates()). Marked obsolete with NLog 6.2")]
public bool? ParseMessageTemplates { get; set; }<ObsoleteAttribute("Instead use NLog.LogManager.Setup().SetupSerialization(s => s.ParseMessageTemplates()). Marked obsolete with NLog 6.2")>
Public Property ParseMessageTemplates As Boolean?
Get
Set
Dim instance As ConfigurationItemFactory
Dim value As Boolean?
value = instance.ParseMessageTemplates
instance.ParseMessageTemplates = value[<ObsoleteAttribute("Instead use NLog.LogManager.Setup().SetupSerialization(s => s.ParseMessageTemplates()). Marked obsolete with NLog 6.2")>]
member ParseMessageTemplates : Nullable<bool> with get, set
Property Value
Type:
NullableBoolean
Remarks
-
(Auto Detect) : NLog-parser checks
Message for positional parameters, and will then fallback to string.Format-rendering.
-
: Always performs the parsing of
Message and rendering of
FormattedMessage using the NLog-parser (Allows custom formatting with
IValueFormatter)
-
: Always performs parsing and rendering using string.Format (Fastest if not using structured logging)
See Also