<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bill Lodin &#187; logging</title>
	<atom:link href="http://blogs.itmentors.com/bill/tag/logging/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.itmentors.com/bill</link>
	<description></description>
	<lastBuildDate>Tue, 11 Jan 2011 22:46:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Azure Log Viewer</title>
		<link>http://blogs.itmentors.com/bill/2009/02/10/windows-azure-log-viewer/</link>
		<comments>http://blogs.itmentors.com/bill/2009/02/10/windows-azure-log-viewer/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 20:24:23 +0000</pubDate>
		<dc:creator>bill</dc:creator>
				<category><![CDATA[Windows Azure]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[log viewer]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://blogs.itmentors.com/bill/?p=6</guid>
		<description><![CDATA[As Chris and Don are fond of saying, Windows Azure is a “nascent” technology. This means that there are features that, although they may be in a future release, are simply not there right now. One of these is the ability to easily read the log entries from your Windows Azure applications running in the [...]]]></description>
			<content:encoded><![CDATA[<p>As <a title="Chris Anderson" href="http://www.simplegeek.com/">Chris</a> and <a title="Don Box" href="http://www.pluralsight.com/community/blogs/dbox/">Don</a> are fond of saying, Windows Azure is a “nascent” technology. This means that there are features that, although they may be in a future release, are simply not there right now. One of these is the ability to easily read the log entries from your Windows Azure applications running in the cloud. I’ve built a little app that will hopefully make it a bit easier!</p>
<p>First, a quick intro: You can write messages to Windows Azure Logs by calling the <em>RoleManager.WriteToLog() </em>method in the <em>Microsoft.ServiceHosting.ServiceRuntime</em> namespace. When the app is running in the development fabric, you can see the messages in the Development Fabric UI. When the app is running in the cloud, the messages just sort of exist in the Web or Worker role that they originated in. To view them, you first need to copy them to a Windows Azure storage account. You do this by clicking the Configure button for your app, and then clicking <strong>Copy Logs</strong>.</p>
<p>At this point, your logs are now stored as blobs in Windows Azure storage. To get at them using just the SDK tools, you can use the <em>CloudDrive</em> sample (as described in this great post by <a title="Using the CloudDrive Sample to Access Windows Azure Logs" href="http://blogs.msdn.com/jnak/archive/2008/11/12/using-the-clouddrive-sample-to-access-windows-azure-logs.aspx">Jim Nakashima</a>.) Inspired by David Aiken’s <a title="Windows Azure Online Log Reader" href="http://davidaiken.com/windows-azure/windows-azure-online-log-reader/">Windows Azure Online Log Reader</a>, I’ve created a WPF app that should make it really easy to view your logs.</p>
<p>Using it is pretty straightforward: when the application starts up it will prompt you for a storage account name and secret key. When you log in, the app scans blob storage for any container that includes a blob whose name begins with “WebRole” or “WorkerRole”. That way, it filters out blob containers that don’t contain log entries. Then it parses the blob names and creates a tree view of the logs (essentially, recreating the hierarchy shown in the development fabric UI.)</p>
<p>You can also modify various display settings. As always, there are a few things that I still want to add:</p>
<ul>
<li>Search functionality</li>
<li>Support for combining logs (so that you don’t need to look at logs in 15 minute increments)</li>
<li>Sorting by column (it’s why I made the column headers buttons – they don’t do anything right now!)</li>
<li>Persist settings in-between sessions</li>
</ul>
<p>At any rate, I hope you find it useful!</p>
<p><a title="Windows Azure Log Viewer" href="http://www.itmentors.com/code/2009/02/AzureLogViewer.zip">Download Azure Log Viewer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.itmentors.com/bill/2009/02/10/windows-azure-log-viewer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

