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
obj
objectLog message or object.
filename
stringLog file path. LogFilePath is used when this parameter is
null
.