Yes, it is possible to change the location of the log file. You'll need to make changes in the Nlog.xml located in the UiPath folder in program files(x86).
<variable name="LogDirectory"
value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs"/>
This is the path of the log file. You can edit this path as per your requirement