 | RichTextBoxTargetMessageRetentionStrategy Enumeration |
How to handle messages when switching between target controls or no control is attached at all
Namespace:
NLog.Windows.Forms
Assembly:
NLog.Windows.Forms (in NLog.Windows.Forms.dll) Version: 5.2.4+61769f974f2d827eeb9ad49a6ae7d02f62cfdccc
Syntaxpublic enum RichTextBoxTargetMessageRetentionStrategy
Public Enumeration RichTextBoxTargetMessageRetentionStrategy
Dim instance As RichTextBoxTargetMessageRetentionStrategy
type RichTextBoxTargetMessageRetentionStrategy
Members
| Member name | Value | Description |
---|
| None | 0 |
Just skip logging events when no target control attached. Only new messages would be sent to rich text box after attachement.
No additional resources spent on this.
|
| OnlyMissed | 1 |
Store logging events only during periods when no target control attached. Only these messages would be sent to rich text box after attachment. Messages that were sent to previous textbox are not stored and would not be shown.
Number of events stored is limited by MaxLines.
|
| All | 2 |
Store all events in internal queue. After attaching to a new control all the stored messages would be repeated in it, including messages that were sent to previous textbox.
Number of messages stored is limited by MaxLines.
|
See Also