Table of Contents

Method DebugLogToFileIf

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

DebugLogToFileIf(object?, bool, string?)

Same as LogToFile(object?, string?) but writes message to file only under debug environment (DEBUG conditional is defined) and if conditional is true.

[Conditional("DEBUG")]
public static void DebugLogToFileIf(object? obj, bool conditional, string? filename = null)

Parameters

obj object

Log message or object.

conditional bool

Whether to log message to file.

filename string

Log file path. LogFilePath is used when this parameter is null.