There is no explicit way to set the debug.log
file to be generated in a location other than the host directory. However, one way you can prevent it from generating is to raise the log severity to "Error" with
CoherentUI.LogSeverity = Coherent.UI.Severity.Error;
If you have any errors that are safe to ignore in your application, you can modify the LogHandler
class to handle them. If this is not a viable solution for you, please provide us with more information regarding your use case. Why does the host directory have these restrictions with read access?
You can change the directory where the CoherentUI_Host.exe is and where the logs are generated to a one with no such restrictions. To do this, use the CoherentUI.HostDirectory property, like this:
CoherentUI.HostDirectory = "C:\\<path_to_custom_dir>"
Support Engineer at Coherent Labs