<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Changing LogFile at Runtime</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Changing LogFile at Runtime</description>
  <pubDate>Wed, 10 Jun 2026 15:46:19 -700</pubDate>
  <lastBuildDate>Thu, 05 Mar 2009 12:16:54 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1109</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Changing LogFile at Runtime : Excellent. Thanks, that works...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1109&amp;PID=3985#3985</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 1109<br /><strong>Posted:</strong> 05-Mar-2009 at 12:16pm<br /><br />Excellent.&nbsp; Thanks, that works for us.]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 12:16:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1109&amp;PID=3985#3985</guid>
  </item> 
  <item>
   <title>Changing LogFile at Runtime :  Unfortunately there&amp;#039;s no...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1109&amp;PID=3962#3962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1109<br /><strong>Posted:</strong> 03-Mar-2009 at 3:44pm<br /><br /><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><DIV>Unfortunately there's no way to change the path at runtime, since&nbsp;once you reference IdeaBladeConfig.Instance it’s too late – the configuration information has already loaded and tracing has started.&nbsp;&nbsp;</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">There is a workaround however; you can create another instance of the logger, like this:<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></DIV><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><FONT face="Courier New" color=#2b91af size=2><SPAN style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TraceFileXmlLogger</SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> logger = <FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT> <FONT color=#2b91af><SPAN style="COLOR: #2b91af">TraceFileXmlLogger</SPAN></FONT>(<FONT color=#a31515><SPAN style="COLOR: #a31515">@"c:\new path\DebugLog.xml"</SPAN></FONT>, <FONT color=blue><SPAN style="COLOR: blue">true</SPAN></FONT>);<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Note that initialization activities prior to creation of this instance won’t be logged to this file.&nbsp; You can also set the &lt;logFile&gt; element in your ibconfig to an empty string if you don’t want multiple log files although you may miss important startup messages. &nbsp;Note that here in IdeaBlade support we usually want a full debug log when diagnosing problems.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 03 Mar 2009 15:44:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1109&amp;PID=3962#3962</guid>
  </item> 
  <item>
   <title>Changing LogFile at Runtime : Is there a way to change the log...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1109&amp;PID=3961#3961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 1109<br /><strong>Posted:</strong> 03-Mar-2009 at 10:27am<br /><br />Is there a way to change the log file path at run time?<DIV>&nbsp;</DIV><DIV>The application we're writing will be installed on several client machines with very limited write access to the local machine.&nbsp; 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.&nbsp; 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.</DIV><DIV>&nbsp;</DIV><DIV>Using the Object Browser, I was able to find:</DIV><DIV>&nbsp;</DIV><DIV>IdeaBlade.Util.IdeaBladeConfig, and thought that I might be able to use the following to set the log file path:</DIV><DIV>&nbsp;</DIV><DIV>IdeaBlade.Util.IdeaBladeConfig c = IdeaBlade.Util.IdeaBladeConfig.Instance;</DIV><DIV>c.Logging.LogFile= @"C:\new path\DebugLog.xml";</DIV><DIV>&nbsp;</DIV><DIV>This does update the LogFile, but it doesn't seem to have any effect on where the file is written.&nbsp; 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.</DIV><DIV>&nbsp;</DIV><DIV>Is there anyway to get around this problem?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Ken</DIV><DIV><FONT color=#dfdfbf></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 03 Mar 2009 10:27:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1109&amp;PID=3961#3961</guid>
  </item> 
 </channel>
</rss>