| TargetWithLayoutLayout Property |
Gets or sets the layout used to format log messages.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public virtual Layout Layout { get; set; }
Public Overridable Property Layout As Layout
Get
Set
Dim instance As TargetWithLayout
Dim value As Layout
value = instance.Layout
instance.Layout = value
abstract Layout : Layout with get, set
override Layout : Layout with get, set
Property Value
Type:
LayoutRemarks
The default value of the layout is:
1${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}
See Also