Method AddLogItem
AddLogItem(TreeViewItem, LogItemKind, bool)
Adds log item using the specified ListControlItem.
LogListBox controls attached to the log will paint added item
with image, font and color properties specified in the item.
public static void AddLogItem(TreeViewItem item, LogItemKind kind = LogItemKind.Information, bool wait = false)
Parameters
itemTreeViewItemItem to add.
kindLogItemKindItem kind.
waitboolIndicates whether the method should wait for the log item to be processed.
AddLogItem(LogItem, bool)
Adds a log item to the logging system, optionally waiting for the operation to complete.
public static void AddLogItem(LogUtils.LogItem item, bool wait)
Parameters
itemLogUtils.LogItemThe log item to be added. This parameter cannot be null.
waitboolA value indicating whether the method should wait for the log item to be processed. If true, the method blocks until the log item is processed; otherwise, the operation is performed asynchronously.
Remarks
If the logging system is configured to use a log queue, the log item is enqueued
before processing. The processing behavior depends on the value of the wait
parameter.