[JP] How can I change the folder that logs like execution log and studio log are saved?

How can I change the folder that logs like execution log and studio log are saved?

1. You can change the log folder by changing NLog.config in "C:\Program Files (x86)\UiPath\Studio".

2. If you want to change all logs, you can update "LogDirectory".

<variable name="LogDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs" />

3. If you want to change a log folder one-by-one, you can update each target.

<targets>
    <target xsi:type="File" name="visionHostFile" fileName="${LogDirectory}/${shortdate}_VisionHost.log" layout="${time} ${level} ${message}" concurrentWrites="true" />
    <target xsi:type="File" name="executionFile" fileName="${LogDirectory}/${shortdate}_Execution.log" layout="${time} ${level} ${message}" concurrentWrites="true" />
</targets>

4. If you want to use a network shared drive, you can specify the path using UNC format like below.

\\machine1\public