Method DebugLogToFile
DebugLogToFile(object?, string?)
Same as LogToFile(object?, string?) but writes message to file only under debug environment (DEBUG conditional is defined).
[Conditional("DEBUG")]
public static void DebugLogToFile(object? obj = null, string? filename = null)
Parameters
objobjectLog message or object.
filenamestringLog file path. LogFilePath is used when this parameter is
null.