<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Vidar's musings - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-7c90559c" type="application/json"/><link>http://vidarsmusings.disqus.com/</link><description></description><atom:link href="http://vidarsmusings.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 26 Apr 2012 17:17:36 -0000</lastBuildDate><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-510110963</link><description>&lt;p&gt;Hi, very interresting article! However when I deploy Your logger locally and connect it with azure table I receive sometimes exception: Collection was modified; enumeration operation may not execute. in:&lt;br&gt;internal void Log(LogEntry logEntry)&lt;br&gt;        {&lt;br&gt;            AddObject("LogEntries", logEntry);&lt;br&gt;            SaveChanges(); &amp;lt;--- here&lt;br&gt;        }&lt;br&gt;By sometimes I mean once for 4 invokations.&lt;/p&gt;

&lt;p&gt;Cheers&lt;br&gt;Mark&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marek Olszewski</dc:creator><pubDate>Thu, 26 Apr 2012 17:17:36 -0000</pubDate></item><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-509116932</link><description>&lt;p&gt;For anyone interested, this is how you actually do the logging.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;pre&gt;var logger = new AzureTableStorageAppender();&lt;br&gt;logger.TableStorageConnectionStringName = "Log4Net.ConnectionString";&lt;br&gt;logger.ActivateOptions();&lt;p&gt;&lt;/p&gt;

&lt;p&gt;var loggingEventData = new LoggingEventData();&lt;br&gt;loggingEventData.Message = message;&lt;br&gt;loggingEventData.TimeStamp = DateTime.Now;&lt;br&gt;loggingEventData.Level = new Level(1, "OMG");&lt;br&gt;loggingEventData.LoggerName = loggerName;&lt;br&gt;loggingEventData.Domain = domain;&lt;br&gt;loggingEventData.ThreadName = threadName;&lt;br&gt;loggingEventData.Identity = identity;&lt;br&gt;var loggingEvent = new LoggingEvent(loggingEventData)'&lt;/p&gt;

&lt;p&gt;logger.DoAppend(loggingEvent);&lt;br&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert</dc:creator><pubDate>Wed, 25 Apr 2012 17:32:29 -0000</pubDate></item><item><title>Re: Using Log4Net in Azure Compute</title><link>http://www.kongsli.net/nblog/2011/08/03/using-log4net-in-azure-compute/#comment-500928447</link><description>&lt;p&gt;Many thanks. &lt;/p&gt;

&lt;p&gt;Is it possible to change the Blob file name at runtime? How can it be done?&lt;/p&gt;

&lt;p&gt;Thanks again.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rvitulli</dc:creator><pubDate>Wed, 18 Apr 2012 12:27:43 -0000</pubDate></item><item><title>Re: Sending POST requests with Watin</title><link>http://www.kongsli.net/nblog/2008/07/07/sending-post-requests-with-watin/#comment-499298372</link><description>&lt;p&gt;Thanks for this. I'm just about to try it out. One thing I have picked up though is that the appending of the form data in MakeByteStreamOf should url encoded the key and value. The values with this code are posted in their original form.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rory Primrose</dc:creator><pubDate>Mon, 16 Apr 2012 19:10:59 -0000</pubDate></item><item><title>Re: Using Log4Net in Azure Compute</title><link>http://www.kongsli.net/nblog/2011/08/03/using-log4net-in-azure-compute/#comment-494777407</link><description>&lt;p&gt;Excelent, simple and very useful post!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sebastian gomez</dc:creator><pubDate>Wed, 11 Apr 2012 17:43:12 -0000</pubDate></item><item><title>Re: NLog: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2012/01/05/nlog-writing-log-entries-to-azure-table-storage/#comment-494684208</link><description>&lt;p&gt;It's a reference to which setting in ServiceConfiguration.scfg that holds the connection string for the table storage. It's explained here: &lt;a href="http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/" rel="nofollow"&gt;http://www.kongsli.net/nblog/2...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vidar Kongsli</dc:creator><pubDate>Wed, 11 Apr 2012 16:13:59 -0000</pubDate></item><item><title>Re: NLog: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2012/01/05/nlog-writing-log-entries-to-azure-table-storage/#comment-489217352</link><description>&lt;p&gt;Thanks, what's ...tableStorageConnectionStringName="Log4Net.ConenctionString" in the NLog.config file?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan</dc:creator><pubDate>Fri, 06 Apr 2012 15:37:51 -0000</pubDate></item><item><title>Re: Powershell: another alternative to ternary operator</title><link>http://www.kongsli.net/nblog/2012/02/23/powershell-another-alternative-to-ternary-operator/#comment-479115380</link><description>&lt;p&gt;That worked for me. Thanks a lot. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Slava Gorbunov</dc:creator><pubDate>Thu, 29 Mar 2012 01:18:21 -0000</pubDate></item><item><title>Re: NLog: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2012/01/05/nlog-writing-log-entries-to-azure-table-storage/#comment-478666843</link><description>&lt;p&gt;The idea was to make the actually writing to the storage asynchronously. Basically, the calling thread does not sit and wait around for the writing to finish. There might be better ways to do this, suggestions are welcome. There might be that the Azure storage client library has some way of handling this as well...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vidar Kongsli</dc:creator><pubDate>Wed, 28 Mar 2012 15:10:52 -0000</pubDate></item><item><title>Re: NLog: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2012/01/05/nlog-writing-log-entries-to-azure-table-storage/#comment-476449595</link><description>&lt;p&gt;Can I ask what the benefit of the Action delegate is inside the Write Method - is this personal preference or required for some reason? Other than that - this was exactly what I was looking for - i might do some additional refactoring once I progress - but a good starting point.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark Phillips</dc:creator><pubDate>Mon, 26 Mar 2012 10:58:09 -0000</pubDate></item><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-460077401</link><description>&lt;p&gt;I have never tried this, but I would try out using a third-party provider, like described here: &lt;a href="http://blog.smarx.com/posts/emailtheinternet-com-sending-and-receiving-email-in-windows-azure" rel="nofollow"&gt;http://blog.smarx.com/posts/em...&lt;/a&gt; If you create an account at, say, SendGrid, you could use the SMTP server there to send your emails from the smtpappender (I would guess).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vidar Kongsli</dc:creator><pubDate>Thu, 08 Mar 2012 16:19:46 -0000</pubDate></item><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-460073351</link><description>&lt;p&gt;You can find the entire code on Github. The link is at the end of the entry text.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vidar Kongsli</dc:creator><pubDate>Thu, 08 Mar 2012 16:14:05 -0000</pubDate></item><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-459637224</link><description>&lt;p&gt;Hi &lt;/p&gt;

&lt;p&gt;Can any one suggest how we can use the email services when we get the error in the application from in the Azure platform using Log4Net.&lt;br&gt; &lt;br&gt;Usually we configure the Log4Net with SMTPAppender to listen and set the configuration level to Error in for Log4Net to get the emails , when any unhandled exception occured or for some other reasons. &lt;br&gt; &lt;br&gt;Can any one have any idea or able to configure like this as given below and getting the emails if any error occured, after hosting the application on Windows Azure.&lt;br&gt; &lt;br&gt;&amp;lt;appender name="SmtpAppender" type="log4net.Appender.SmtpAppender"&amp;gt;&lt;br&gt;             &amp;lt;to value="to@to.come"&amp;gt;&lt;br&gt;             &amp;lt;from value="from@from.com"&amp;gt;&lt;br&gt;             &amp;lt;subject value="Log Message"&amp;gt;&lt;br&gt;             &amp;lt;smtphost value="SMPTAddress"&amp;gt;&lt;br&gt;             &amp;lt;buffersize value="1"&amp;gt;&lt;br&gt;             &amp;lt;lossy value="false"&amp;gt;&lt;br&gt;             &amp;lt;layout type="log4net.Layout.PatternLayout"&amp;gt;&lt;br&gt;                 &amp;lt;conversionpattern value="%d [%t] %-5p %c [%property{UserId}] %m%n"&amp;gt;&lt;br&gt;             &amp;lt;/conversionpattern&amp;gt;&amp;lt;/layout&amp;gt;&lt;br&gt;             &amp;lt;filter type="log4net.Filter.LevelRangeFilter"&amp;gt;&lt;br&gt;                 &amp;lt;levelmin value="ERROR"&amp;gt;&lt;br&gt;                 &amp;lt;levelmax value="ERROR"&amp;gt;&lt;br&gt;             &amp;lt;/levelmax&amp;gt;&amp;lt;/levelmin&amp;gt;&amp;lt;/filter&amp;gt;&lt;br&gt; &amp;lt;/lossy&amp;gt;&amp;lt;/buffersize&amp;gt;&amp;lt;/smtphost&amp;gt;&amp;lt;/subject&amp;gt;&amp;lt;/from&amp;gt;&amp;lt;/to&amp;gt;&amp;lt;/appender&amp;gt;&lt;br&gt;         &amp;lt;root&amp;gt;&lt;br&gt;             &amp;lt;level value="TRACE"&amp;gt;&lt;br&gt;            &amp;lt;appender-ref ref="SmtpAppender"&amp;gt;&lt;br&gt;         &amp;lt;/appender-ref&amp;gt;&amp;lt;/level&amp;gt;&amp;lt;/root&amp;gt;&lt;br&gt; &lt;br&gt;Already i have gone through the below articles , but I am trying to find out is there any alternative available using Log4Net with out implementing the custom solutions to achieve this task.&lt;br&gt; &lt;br&gt;&lt;a href="http://blogs.msdn.com/b/windowsazure/archive/2010/10/08/adoption-program-insights-sending-emails-from-windows-azure-part-1-of-2.aspx?wa=wsignin1.0" rel="nofollow"&gt;http://blogs.msdn.com/b/window...&lt;/a&gt;&lt;br&gt; &lt;br&gt;Thanks in Advance.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ckumarreddy</dc:creator><pubDate>Thu, 08 Mar 2012 05:12:05 -0000</pubDate></item><item><title>Re: NLog: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2012/01/05/nlog-writing-log-entries-to-azure-table-storage/#comment-457673425</link><description>&lt;p&gt;Thanks, I will if time permits :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vidar Kongsli</dc:creator><pubDate>Tue, 06 Mar 2012 05:02:05 -0000</pubDate></item><item><title>Re: NLog: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2012/01/05/nlog-writing-log-entries-to-azure-table-storage/#comment-455448773</link><description>&lt;p&gt;Good stuff I think you should made it a nuget package. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Seewald</dc:creator><pubDate>Sat, 03 Mar 2012 12:37:05 -0000</pubDate></item><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-449741184</link><description>&lt;p&gt;Hi Can you post the complete code here, I could find the AddObject method in the 2nd list of code what is posted here, where it is written here.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ckumareddy</dc:creator><pubDate>Mon, 27 Feb 2012 02:35:03 -0000</pubDate></item><item><title>Re: Adding WCF REST services to existing ASP.NET web application</title><link>http://www.kongsli.net/nblog/2011/04/06/adding-wcf-rest-services-to-existing-asp-net-web-application/#comment-381792934</link><description>&lt;p&gt;Great thanks for this awesome article, I used this is production.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GovindKamalaPrakashMalviya</dc:creator><pubDate>Thu, 08 Dec 2011 00:04:45 -0000</pubDate></item><item><title>Re: Using Log4Net in Azure Compute</title><link>http://www.kongsli.net/nblog/2011/08/03/using-log4net-in-azure-compute/#comment-308074520</link><description>&lt;p&gt;Thanks for the post. How did you work around the problem of the diagnostics requiring a lock on a file in order to copy it to blob storage? I have not been able to get this approach to work on the cloud because of this reason.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Erick Thompson</dc:creator><pubDate>Mon, 12 Sep 2011 16:38:45 -0000</pubDate></item><item><title>Re: About me</title><link>http://www.kongsli.net/nblog/about-me/#comment-305987258</link><description>&lt;p&gt;Hi Vidar, this is Richard Campbell from .NET Rocks. We read the comment you made about show 669 on show 704. We'd like to send you a mug! Send you mail address to me at richard@pwop.com and we'll hook you up!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Richard Campbell</dc:creator><pubDate>Fri, 09 Sep 2011 12:19:50 -0000</pubDate></item><item><title>Re: Using Log4Net in Azure Compute</title><link>http://www.kongsli.net/nblog/2011/08/03/using-log4net-in-azure-compute/#comment-300221083</link><description>&lt;p&gt;Thanks for this excellent post - it's made things a lot less painful for me! I am having trouble when it's deployed though - are there any changes you have to make to the ServiceConfiguration.csfg file, more specifically this part before deployment?&lt;/p&gt;

&lt;p&gt;&amp;lt;setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true"&amp;gt;&amp;lt;/setting&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ross Vernal</dc:creator><pubDate>Thu, 01 Sep 2011 04:25:10 -0000</pubDate></item><item><title>Re: Adding WCF REST services to existing ASP.NET web application</title><link>http://www.kongsli.net/nblog/2011/04/06/adding-wcf-rest-services-to-existing-asp-net-web-application/#comment-296075349</link><description>&lt;p&gt;Thanks a million for this short and sweet article. I was up and running in &amp;lt; 2 minutes!&lt;/p&gt;

&lt;p&gt;-dan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Morphis</dc:creator><pubDate>Fri, 26 Aug 2011 14:45:09 -0000</pubDate></item><item><title>Re: Log4Net: writing log entries to Azure Table Storage</title><link>http://www.kongsli.net/nblog/2011/08/15/log4net-writing-log-entries-to-azure-table-storage/#comment-288914487</link><description>&lt;p&gt;Awesome! I was just about to write my own appender when I found yours. Thanks very much for taking the time to do this and blog about it. Now it would be great if one could provide something like a plugin to AzureStorageExplorer to format and colour the logs properly... mmm...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">edenridgway</dc:creator><pubDate>Wed, 17 Aug 2011 01:35:22 -0000</pubDate></item><item><title>Re: Parsing XML using XmlSerializer or DataContractSerializer</title><link>http://www.kongsli.net/nblog/2010/02/01/parsing-xml-using-xmlserializer-or-datacontractserializer/#comment-276577120</link><description>&lt;p&gt;I've been trying to get DataContractSerializer to work on my class, which needs to deserialize private data.  I've tried it several ways, including the way you have outlined in your article, but it doesn't seem to work for me.  When I compile, I get messages for each private property in the class:&lt;/p&gt;

&lt;p&gt;Could not find schema information for the element 'MyProperty'&lt;/p&gt;

&lt;p&gt;And when I run, I get:&lt;/p&gt;

&lt;p&gt;Unable to generate a temporary class (result=1).&lt;br&gt;error CS0200: Property or indexer&lt;br&gt;'MyProperty' cannot be assigned to -- it is read only&lt;/p&gt;

&lt;p&gt;Isn't that weird?  I seem to read everywhere that I should be able to deserialize data from my XML file and populate the private members of this class, but I haven't yet found a way to make it work with DataContractSerializer.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave</dc:creator><pubDate>Sat, 07 Aug 2010 19:46:17 -0000</pubDate></item><item><title>Re: Google App Engine: mail quota limits and task queues</title><link>http://www.kongsli.net/nblog/2010/03/25/google-app-engine-mail-quota-limits-and-task-queues/#comment-276577171</link><description>&lt;p&gt;Maybe you should show the Queues onfigurations also.and mention that the Queue is set at a rate per min.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://code.google.com/intl/no/appengine/docs/python/taskqueue/overview.html#Queue_Concepts" rel="nofollow"&gt;http://code.google.com/intl/no...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ALSO: the captcha is ridiculous.. This is the third attempt.. and I got good eyesight.. maybe why not many comments ;-(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pete</dc:creator><pubDate>Tue, 20 Jul 2010 22:42:08 -0000</pubDate></item><item><title>Re: Atlassian products hacked</title><link>http://www.kongsli.net/nblog/2010/04/14/atlassian-products-hacked/#comment-276577197</link><description>&lt;p&gt;Thanks for that clarification, Steve. That helps a lot.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vidarkongsli</dc:creator><pubDate>Wed, 14 Apr 2010 06:26:50 -0000</pubDate></item></channel></rss>
