Table of Contents

Method LogIf

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

LogIf(object?, bool, LogItemKind)

Calls Log(object?, LogItemKind) if condition is true.

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

Parameters

obj object

Message text.

condition bool

Whether to log message.

kind LogItemKind

Message kind.