Table of Contents

Method AddLogItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

item TreeViewItem

Item to add.

kind LogItemKind

Item kind.

wait bool

Indicates 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

item LogUtils.LogItem

The log item to be added. This parameter cannot be null.

wait bool

A 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.