<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Gurock Software Support Forum - Rollover of logs]]></title>
		<link>http://forum.gurock.com/topic/358/rollover-of-logs/</link>
		<description><![CDATA[The most recent posts in Rollover of logs.]]></description>
		<lastBuildDate>Thu, 04 Mar 2010 14:50:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1112/#p1112</link>
			<description><![CDATA[<p>Hi Andrei,</p><p>here&#039;s the promised diff:</p><div class="codebox"><pre><code>FileProtocol.cs, line 627:
- if (this.fRotater.Update(DateTime.UtcNow))
+ if (this.fRotater.Update(DateTime.Now))

FileHelper.cs, line 172:
- DateTime.UtcNow.ToString(DATETIME_FORMAT),
+ DateTime.Now.ToString(DATETIME_FORMAT),

FileHelper.cs, lines 116-117:
- Int32.Parse(values[5]) /* Second */
+ Int32.Parse(values[5]), /* Second */
+ DateTimeKind.Local</code></pre></div><p>I&#039;ve tested the changes and they work as expected. Hope this helps.</p><p>Regards,<br />Tobias</p>]]></description>
			<author><![CDATA[null@example.com (tgurock)]]></author>
			<pubDate>Thu, 04 Mar 2010 14:50:04 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1112/#p1112</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1111/#p1111</link>
			<description><![CDATA[<p>Hi Andrei,</p><p>I will prepare a full diff with the necessary changes until tomorrow. It&#039;s basically just changing DateTime.UtcNow to DateTime.Now but there is one other location that needs to be modified as well and which is a bit more complicated.</p><p>Regards,<br />Tobias</p>]]></description>
			<author><![CDATA[null@example.com (tgurock)]]></author>
			<pubDate>Wed, 03 Mar 2010 18:32:51 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1111/#p1111</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1110/#p1110</link>
			<description><![CDATA[<p>Thanks . I will give it a try</p>]]></description>
			<author><![CDATA[null@example.com (Andrei)]]></author>
			<pubDate>Wed, 03 Mar 2010 13:16:43 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1110/#p1110</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1109/#p1109</link>
			<description><![CDATA[<p>The link works now, sorry. We currently do not have an eta, but definitely not years. :-)</p><p>As another alternative to writing a custom protocol, you could also modify the library itself (it&#039;s just changing 2-3 lines from DateTime.UtcNow to DateTime.Now) and recompile it. Let me know in case you want to do this. Of course, the problem with this option is that you need to reapply your changes for every update that comes out.</p><p>Regards,<br />Tobias</p>]]></description>
			<author><![CDATA[null@example.com (tgurock)]]></author>
			<pubDate>Mon, 01 Mar 2010 13:12:24 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1109/#p1109</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1108/#p1108</link>
			<description><![CDATA[<p>Thanks<br />The link seems to be broken - 404 error<br />Do you have an Eta on the new cersion , weeks, months or years ?</p><p>Andrei</p>]]></description>
			<author><![CDATA[null@example.com (Andrei)]]></author>
			<pubDate>Mon, 01 Mar 2010 12:33:32 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1108/#p1108</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1107/#p1107</link>
			<description><![CDATA[<p>There&#039;s currently no way to intercept and customize this specific feature but you can always add and use your own custom file protocol implementation. It&#039;s a bit of work but you could use the existing FileProtocol as reference (we also have an article which explains how to write custom protocols: <a href="http://www.gurock.com/smartinspect/using-custom-protocols-with-the-smartinspect-libraries.a.html">http://www.gurock.com/smartinspect/usin … ies.a.html</a>)</p><p>However, I think we will add an option for using UTC or local time to the next version and if this is a non-critical issue for you, I would just recommend waiting for the next release. </p><p>Regards,<br />Tobias</p>]]></description>
			<author><![CDATA[null@example.com (tgurock)]]></author>
			<pubDate>Mon, 01 Mar 2010 10:32:07 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1107/#p1107</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1106/#p1106</link>
			<description><![CDATA[<p>Is there any way where we can intercept the rollover and file name logic of Smart inspect as our previous library (home grown) had all of these features </p><p>I am happy to share this code with you if you like ?<br />Thanks</p><p>Andrei</p>]]></description>
			<author><![CDATA[null@example.com (Andrei)]]></author>
			<pubDate>Sat, 27 Feb 2010 22:47:03 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1106/#p1106</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1103/#p1103</link>
			<description><![CDATA[<p>Hello Andrei,</p><p>Thanks for your post. There&#039;s currently no option to use the local time in log file names instead of UTC. The reason for using UTC is that it&#039;s independent of time zone and especially daylight saving changes (which may cause issues for long running applications otherwise). </p><p>Regards,<br />Tobias</p>]]></description>
			<author><![CDATA[null@example.com (tgurock)]]></author>
			<pubDate>Fri, 26 Feb 2010 13:08:13 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1103/#p1103</guid>
		</item>
		<item>
			<title><![CDATA[Rollover of logs]]></title>
			<link>http://forum.gurock.com/post/1102/#p1102</link>
			<description><![CDATA[<p>Hi</p><p>We are using smart inspect and have been noticiing that the roolover of logs seems to be based on UTC and not local time. ?</p><p>Is there a way we can force rollover at local time ie midnight.</p><p>Our connections string is <br />&quot;tcp(reconnect=true,async.enabled=true,reconnect.interval=10),Text(append=true, async.enabled=true, filename=&quot; &amp; IO.Path.Combine(LogFilePath, LogFileName) &amp; &quot;,maxparts=1, indent=true, reconnect=true, rotate=daily, pattern=[%timestamp%] %logentrytype% %session%[%thread%] : %title% )&quot;</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (Andrei)]]></author>
			<pubDate>Fri, 26 Feb 2010 09:25:39 +0000</pubDate>
			<guid>http://forum.gurock.com/post/1102/#p1102</guid>
		</item>
	</channel>
</rss>

