Is there a way to change the log file path at run time?
The application we're writing will be installed on several client machines with very limited write access to the local machine. The default log file path is the same as the executable path (i.e. C:\Program Files...), but we are not allowed write access to that path. We can write to the user's My Documents path, but obviously this path is different for every user so we can't simply set a different path in the ideablade.ibconfig file.
Using the Object Browser, I was able to find:
IdeaBlade.Util.IdeaBladeConfig, and thought that I might be able to use the following to set the log file path:
IdeaBlade.Util.IdeaBladeConfig c = IdeaBlade.Util.IdeaBladeConfig.Instance;
c.Logging.LogFile= @"C:\new path\DebugLog.xml";
This does update the LogFile, but it doesn't seem to have any effect on where the file is written. I also noticed that c.Logging has a FullyQualifiedLogFile property that is not being updated when I explicitly set the LogFile, and it is read only so I can't update this manually.
Is there anyway to get around this problem?