Azure Logging for Asp.Net Core Developers

Поділитися
Вставка
  • Опубліковано 25 лип 2024
  • Logging to Microsoft Azure from an Asp.Net Core application is very easy. The beautiful part, however, is that Microsoft Azure provides us with a bunch of different logging capabilities. In this video, we'll investigate logging to the filesystem, logging to Azure Blob Storage and logging to ApplicationInsights. And I'll also show you some very important troubleshooting technique!
    #aspnetcore #azure #dotnet
    Join this channel to get source code access and other perks:
    / @codewrinkles
    Content:
    1. Intro 00:00
    2. Logging to filesystem: 01:11
    3. Logging to Azure Blob Storage: 05:59
    4. Debugging with Log Stream: 09:59
    5. Logging to ApplicationInsights: 12:16
    Also follow me here (especially if you are a self taught developer):
    ✅My other channel: / @danpatrascutech
    ✅Facebook: / danpatrascutech
    ✅Instagram: / danpatrascutech
    ✅TikTok: / danpatrascutech
    ✅Newsletter: www.danpatrascu.tech/
    My setup:
    Camera - Canon EOS M50 Mark II: amzn.to/3SJxS4d
    Lav mic - Rode Lavalier GO Professional: amzn.to/3mmZS1B
    Condenser mic - Shure SM7B: amzn.to/3JaqjQN
    Audio console - Rodecaster PRO II: amzn.to/3KTVMIg
    Laptop - Dell Latitude: amzn.to/3KV4SEW
    Monitors - Benq 27 inch: amzn.to/3JbM6aU
    Lights - 2x Godox SL-60W: amzn.to/3KV3qCj
  • Наука та технологія

КОМЕНТАРІ • 22

  • @elsharpos
    @elsharpos 7 місяців тому +1

    the best video online of how all fits together, nice and easy to understand, specially when you don't have a lot of time to watch and/or read many blogs to get all the info!. This video has everything just in one video and in 16 minutes! Thanks Dan, great work mate!

  • @Kanfutizer
    @Kanfutizer 23 години тому

    Wow thanks was struggling with this for sometime. Couldn't find any easy to understand info about this flow by google. Thanks alot! This must make my development experience with Azure easier if I encounter any bugs in the future, just if.

  • @arupjena9207
    @arupjena9207 7 місяців тому

    Very simple and straight forward, just what I was looking for in 1 short video . Thanks Matt..

  • @viktoreigenseer3401
    @viktoreigenseer3401 2 місяці тому

    I watched a video about Crud Apis 2-3 years ago. I really liked the content. Now i typed azure logging and yeah, saw you again. Looks so professional now. Thanks for the content, great stuff again. GJ & GL

  • @paras_vora
    @paras_vora 9 місяців тому

    Great Video, Thank you for sharing!

  • @conaxlearn8566
    @conaxlearn8566 Рік тому +2

    This is so great! I've been wondering why there weren't any logs even after I turned on logging in App Service Logs. I was missing the nuget packages! 😂😂 Thank you!

  • @VF7RM
    @VF7RM 9 місяців тому

    Great video 💪

  • @i.paradox
    @i.paradox 11 місяців тому

    Huge Respect 👏

  • @siddheshswa
    @siddheshswa 4 місяці тому

    This is great video very informative. Question - to enable logging in azure function , it can only be done through diagnostic settings and select analytics services to log in function tables right ? Or all above modes of file , blob are also applicable.

  • @pavelromashuk237
    @pavelromashuk237 Рік тому +1

    Thanks for the video. Is it possible to ask you to make a video how to manage logs for a set of applications. Like azure monitor. It is very useful when you are in microservices . Thank you.

    • @Codewrinkles
      @Codewrinkles  Рік тому

      I have briefly mentioned Azure Monitor also in this video. Your idea is for sure very good. I'd just need to find a way to wrap it in a story worth telling and investigate what the effort to set it up would be. But I'm certainly considering it. THanks for watching.

  • @radiculous
    @radiculous Рік тому

    @Codewrinkles Hi Dan, great content! I have two questions 1) Logging via Azure Table Storage: how do you compare it or when to use it over Blob storage, and 2) Costing: between the options presented in this video + Azure Table Storage? Thanks!

    • @Codewrinkles
      @Codewrinkles  Рік тому

      Is there a logging provider for Azure Table Storage? TBH, I've never seen something like this. But, indeed, Azure Table Storage would also be a nice use case for logging.

    • @radiculous
      @radiculous Рік тому

      @@Codewrinkles An advantage of using Azure Table Storage I see over Blob Storage would be that it provides querying capabilities. I'm trying to figure out if Azure Table Storage would be a better alternative to Application Insights for logging purposes. We are already using Application Insights for monitoring, so it would make sense to have monitoring and logging in one place? Thinking about long term costs as well.

    • @Codewrinkles
      @Codewrinkles  Рік тому

      One problem with the Table storage in relation to logging would be to define what exactly would you like to have as table key and what for row key. I think partitioning might become a head ache that could prove to become more expansive than other serices if not constantly monitored and changed accordingly. It's just a thought. As said, I have never used Table Storage for logging.

  • @karthikbalasubramanya
    @karthikbalasubramanya Рік тому +2

    How about logging with the help of framework like nLog,serilog using azure??

    • @Codewrinkles
      @Codewrinkles  Рік тому +2

      I have made one video at least about logging with Serilog (not to Azure though). I know that my opinion here is probably unpopular, but experience has taught me that each time you add a library to your application, you add technical depth. If I am on a full cloud poriject then I prefer to not use Serilog or any other logging libraries. I think that the Extensions.Logging packages that MS provides are good enough for 90% of the apps out there.
      If it's not a cloud native project, than I prefer to use Serilog with different sink packages depending on what the requirements are.

    • @zaharivaklinov
      @zaharivaklinov Рік тому

      @@Codewrinkles In the case of your project being in the cloud (Azure), then you suggest using the Microsoft Extensions.Logging. Does this also refer to logging to an Azure resource, for example Application Insights?

    • @Codewrinkles
      @Codewrinkles  Рік тому +1

      Maybe I was not explicit enough, but I was talking especially in regard to Azure Logging (could be filesystem, blob, AppInsights, Azure Monitor, Azure LogAnalytics). Why would you use a 3rd party logging library as long as MS has packages that do the job more than decently?