Log .NET 6 API to CloudWatch with NLog

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • In this video, we're going to look at how to set up NLog in .NET 6 to write logs to Amazon CloudWatch. This is an easy way to aggregate logs from your .NET applications to the cloud!Apologies for the sound quality during the demo! My sound input was non-functioning during the recording, so I reverted back to a lower quality mic backup. This is fixed in the next video!
    This video is sponsored by AWS.
    🤝 Become a Patron of the Channel!
    / productivedev
    Patreon supporters get access to source code from all episodes!
    👋 Get in Touch!
    ► Facebook bit.ly/productive-dev-fb​​
    ► LinkedIn bit.ly/wesd-linkedin​​
    ► Twitter bit.ly/wesd-twitter
    🕘 Timestamps
    0:00 - Intro
    2:04 - Intro to Project
    3:56 - Code Overview Before Logging
    4:58 - Install Dependencies
    6:04 - Creating the nlog.onfig File
    11:25 - Setup IAM Role
    15:25 - Setup Logging in .NET Web API
    18:42 - Viewing Log Outputs
    📚 Topics Covered in This Video
    ► .NET 6
    ► AWS
    ► Amazon CloudWatch
    ► .NET 6 Web API
    ► Cloud Native
    ► NLog
    ► Log Aggregation
    ► Observability
    ► DevOps
  • Věda a technologie

Komentáře • 6

  • @ramchandrathakkar2022
    @ramchandrathakkar2022 Před 2 lety +2

    As usual, again must say very informative. Thanks Wes. Continue this good work for the community.

  • @2005Azm
    @2005Azm Před 2 lety +1

    It's always such a delight each time you drop these goodies! Thank you, teacher!

  • @kresnofatihimani5073
    @kresnofatihimani5073 Před 2 lety +2

    nice! if you ever need new content ideas, i can tell you i really need someone to walkthrough most of dev-related aws services with dotnet. thx for the video!

  • @tommynaugle3572
    @tommynaugle3572 Před 2 lety +1

    What were your thoughts on working with the .NET framework? How did it feel working with it compared to an open source stack?

  • @hareesh22
    @hareesh22 Před 2 lety +1

    How to pass the profile and region values from startup or appsettings.json instead of hard doing in config file? As per my requirement the profile name varies based on environment I work. Any help would be appreciated..😊

    • @WesDoyle
      @WesDoyle  Před 2 lety

      Hi Hareesh, this is possible! Check out the wiki for NLog.Extensions.Logging library on GitHub for more info: github.com/NLog/NLog.Extensions.Logging/wiki/NLog-configuration-with-appsettings.json