Method LogToFile
LogToFile(object?, string?)
Logs message to the specified file or to default application log file.
public static void LogToFile(object? obj = null, string? filename = null)
Parameters
objobjectObject to log.
filenamestringLog file path. LogFilePath is used when this parameter is
null.