Method LogIf
LogIf(object?, bool, LogItemKind)
Calls LogMessage event if condition
is true.
public static void LogIf(object? obj, bool condition, LogItemKind kind = LogItemKind.Information)
Parameters
objobjectMessage text or object to log.
conditionboolLog if
true.kindLogItemKindItem kind.