Table of Contents

Method LogIf

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

LogIf(object?, bool, LogItemKind)

Calls LogMessage event if condition is true.

public static void LogIf(object? obj, bool condition, LogItemKind kind = LogItemKind.Information)

Parameters

obj object

Message text or object to log.

condition bool

Log if true.

kind LogItemKind

Item kind.