You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-python-postgresql-app-fastapi.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -303,16 +303,16 @@ With the PostgreSQL database protected by the virtual network, the easiest way t
303
303
304
304
## 6. Stream diagnostic logs
305
305
306
-
Azure App Service captures all messages output to the console to help you diagnose issues with your application. The sample app includes `print()` statements to demonstrate this capability as shown below.
306
+
yThe sample app uses the Python Standard Library logging module to help you diagnose issues with your application. The sample app includes calls to the logger as shown below.
1. From the left menu, select **App Service logs**.
314
314
1. Under **Application logging**, select **File System**.
315
-
1. In the top menu, select **Save**.
315
+
1. In the top menu, select **Save**.
316
316
:::column-end:::
317
317
:::column:::
318
318
:::image type="content" source="./media/tutorial-python-postgresql-app-fastapi/azure-portal-stream-diagnostic-logs-1.png" alt-text="A screenshot showing how to enable native logs in App Service in the Azure portal." lightbox="./media/tutorial-python-postgresql-app-fastapi/azure-portal-stream-diagnostic-logs-1.png":::
@@ -420,7 +420,7 @@ The azd template generates the connectivity variables for you as [app settings](
420
420
421
421
1. `AZURE_POSTGRESQL_CONNECTIONSTRING` contains the connection string to the Postgres database in Azure. You need to use it in your code to connect to it. You can find the code that uses this environment variable in *src/fastapi/models.py*:
@@ -475,11 +475,11 @@ In this section, you'll run this command manually for demonstration purposes. Wi
475
475
476
476
## 6. Stream diagnostic logs
477
477
478
-
Azure App Service can capture console logs to help you diagnose issues with your application. For convenience, the azd template has already [enabled logging to the local file system](troubleshoot-diagnostic-logs.md#enable-application-logging-linuxcontainer) as well as [shipping them to a Log Analytics workspace](troubleshoot-diagnostic-logs.md#send-logs-to-azure-monitor).
478
+
Azure App Service can capture logs to help you diagnose issues with your application. For convenience, the azd template has already [enabled logging to the local file system](troubleshoot-diagnostic-logs.md#enable-application-logging-linuxcontainer) as well as [shipping them to a Log Analytics workspace](troubleshoot-diagnostic-logs.md#send-logs-to-azure-monitor).
479
479
480
-
The sample app includes `print()` statements to demonstrate this capability as shown in the following snippet.
480
+
The sample app uses the Python Standard Library logging module to output logs. The sample app includes calls to the logger as shown below.
0 commit comments