From f4310a4d7492c38f7e02b4bc6628cdda757c11bd Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 10 Aug 2022 13:39:12 -1000 Subject: [PATCH] Azure streaming logs /5 (#26666) * Azure streaming logs /5 * Azure streaming logs /5 * Azure streaming logs /5 * Azure streaming logs /5 * Azure streaming logs /5 * Azure streaming logs /5 * Azure streaming logs /5 * Azure streaming logs /5 --- aspnetcore/test/troubleshoot-azure-iis.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/aspnetcore/test/troubleshoot-azure-iis.md b/aspnetcore/test/troubleshoot-azure-iis.md index d49695a9f2..b122a4f46c 100644 --- a/aspnetcore/test/troubleshoot-azure-iis.md +++ b/aspnetcore/test/troubleshoot-azure-iis.md @@ -209,6 +209,25 @@ The [ASP.NET Core Module](xref:host-and-deploy/aspnet-core-module) is configured [!INCLUDE [Azure App Service Preview Notice](~/includes/azure-apps-preview-notice.md)] +### Azure App Services Log stream + +The Azure App Services Log streams logging information as it occurs. To view streaming logs: + +1. In the Azure portal, open the app in **App Services**. +1. In the left pane, navigate to **Monitoring** > **App Service Logs**. + ![App Service Logs](https://user-images.githubusercontent.com/3605364/183573538-80645002-d1c3-4451-9a2f-91ef4de4e248.png) +1. Select **File System** for **Web Server Logging**. Optionally enable **Application logging**. + ![enable logging](https://user-images.githubusercontent.com/3605364/183529287-f63d3e1c-ee5b-4ca1-bcb6-a8c29d8b26f5.png) +1. In the left pane, navigate to **Monitoring** > **Log stream**, and then select **Application logs** or **Web Server Logs**. + + ![Monitoring Log stream](https://user-images.githubusercontent.com/3605364/183561255-91f3d5e1-141b-413b-a403-91e74a770545.png) + + The following images shows the application logs output: + + ![app logs](https://user-images.githubusercontent.com/3605364/183528795-532665c0-ce87-4ed3-8e4d-4b374d469c2a.png) + +Streaming logs have some latency and might not display immediately. + ### Application Event Log (Azure App Service) To access the Application Event Log, use the **Diagnose and solve problems** blade in the Azure portal: