Table of Contents

Method LogNameValueIf

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

LogNameValueIf(string, object?, bool, LogItemKind)

Logs name and value pair as "{name} = {value}" if condition is true.

public static void LogNameValueIf(string name, object? value, bool condition, LogItemKind kind = LogItemKind.Information)

Parameters

name string

Name.

value object

Value.

condition bool

Log if true.

kind LogItemKind

Item kind.