ASP.NET Core applications can take advantage of Azure App Service logging with the AzureAppService package and logging provider.
- [Instructor] There is a new logging provider in 1.1, and that is the Azure App Service logging provider, and this takes advantage of Azure Service logging and diagnostics. As the name would indicate, it's designed for App Service apps, and it only works in an Azure environment. To use this, you add in the Microsoft.Extensions.Logging.AzureApp Services package, the UseAzureAppServices() to the WebHostBuilder, and as a side note, you don't have to then add in UseIISIntegration to the WebHostBuilder, as that is included in the UseAzureAppServices() function, but according to Microsoft, it won't do any damage if you leave it in there.
And then to your loggerFactory, you add the AzureWebAppDiagnostics provider, and it will then use Azure Logging for your application. What's changed in 2.0 is this provider is available by default. I don't have any code to show you with this, because I'm not running the app in Azure, but by now it should be pretty clear where to plug in these new features if you are going to host your application in Azure.
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages
Skill Level Intermediate
Set up the sample projects4m 49s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.