<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logging on MarkJacobsen.net</title><link>https://markjacobsen.net/tags/logging/</link><description>Recent content in Logging on MarkJacobsen.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 05 Dec 2022 00:02:00 +0000</lastBuildDate><atom:link href="https://markjacobsen.net/tags/logging/index.xml" rel="self" type="application/rss+xml"/><item><title>Reviewing Azure Function App Logs</title><link>https://markjacobsen.net/2022/12/reviewing-azure-function-app-logs/</link><pubDate>Mon, 05 Dec 2022 00:02:00 +0000</pubDate><guid>https://markjacobsen.net/2022/12/reviewing-azure-function-app-logs/</guid><description>&lt;p&gt;I’ve been playing around recently with Azure, finally got some things working, and think I’m starting to understand things a little better (though still terrified somehow I’m going to create something that costs a boatload of money).&lt;/p&gt;
&lt;p&gt;One of the things any app developer will always want to do is be able to review logs so that’s what I was in search of today. While it looks like you can monitor logs in real time… I hardly ever need to do that (that’s what local debugging is for). I was trying to figure out where/how to view my logs &lt;strong&gt;after&lt;/strong&gt; they had generated… you know, like you have to do to support anything.&lt;/p&gt;
&lt;p&gt;Anyway, it appears the secret is that you need to configure things to send your logs to a log analytics workspace &lt;strong&gt;1st&lt;/strong&gt; (and if I’m wrong here I would love to know a better way). To do that I followed the instructions &lt;a href="https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitor-log-analytics?tabs=csharp" target="_blank" rel="noreferrer noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Keep in mind though that it take a bit for logs to start getting pulled over so it’s not like a real time stream. For a real time stream (like when debugging, but from the server) look at “Log stream” for your Function App…&lt;/p&gt;
&lt;div class="wp-block-image"&gt;
 &lt;figure class="aligncenter size-full"&gt;&lt;a href="https://i0.wp.com/markjacobsen.net/wp-content/uploads/2022/12/image.png?ssl=1"&gt;&lt;img data-recalc-dims="1" loading="lazy" decoding="async" width="247" height="308" src="https://i0.wp.com/markjacobsen.net/wp-content/uploads/2022/12/image.png?resize=247%2C308&amp;#038;ssl=1" alt="" class="wp-image-6369" srcset="https://i0.wp.com/markjacobsen.net/wp-content/uploads/2022/12/image.png?w=247&amp;ssl=1 247w, https://i0.wp.com/markjacobsen.net/wp-content/uploads/2022/12/image.png?resize=241%2C300&amp;ssl=1 241w" sizes="auto, (max-width: 247px) 100vw, 247px" /&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;/div&gt;</description></item></channel></rss>