Table of Contents

Method DebugIdleLogIf

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

DebugIdleLogIf(object?, bool, LogItemKind)

Calls Log(object?, LogItemKind) method with obj parameter when application becomes idle. This method works only if DEBUG conditional is defined and condition is True.

[Conditional("DEBUG")]
public static void DebugIdleLogIf(object? obj, bool condition, LogItemKind kind = LogItemKind.Information)

Parameters

obj object

Message text or object to log.

condition bool

The flag which specifies whether to call Log(object?, LogItemKind) method.

kind LogItemKind

Message kind.

Remarks

This method is thread safe and can be called from non-ui threads.