 | EventLogTargetMaxKilobytes Property |
Gets or sets the maximum Event log size in kilobytes.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic Layout<long>? MaxKilobytes { get; set; }
Public Property MaxKilobytes As Layout(Of Long)
Get
Set
Dim instance As EventLogTarget
Dim value As Layout(Of Long)
value = instance.MaxKilobytes
instance.MaxKilobytes = value
member MaxKilobytes : Layout<int64> with get, set
Property Value
Type:
LayoutInt64
RemarksProperty Value
Type:
LayoutInt64MaxKilobytes cannot be less than 64 or greater than 4194240 or not a multiple of 64.
If
null, the value will not be specified while creating the Event log.
See Also