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