Method DebugIdleLogIf
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
objobjectMessage text or object to log.
conditionboolThe flag which specifies whether to call Log(object?, LogItemKind) method.
kindLogItemKindMessage kind.
Remarks
This method is thread safe and can be called from non-ui threads.