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/container-apps/log-streaming.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ services: container-apps
5
5
author: cebundy
6
6
ms.service: container-apps
7
7
ms.topic: how-to
8
-
ms.date: 02/16/2023
8
+
ms.date: 03/24/2023
9
9
ms.author: v-bcatherine
10
10
---
11
11
12
12
# View log streams in Azure Container Apps
13
13
14
14
While developing and troubleshooting your container app, it's essential to see the [logs](logging.md) for your container app in real time. Azure Container Apps lets you stream:
15
15
16
-
-[system logs](logging.md#system-logs) from the Container Apps environment and your container app.
16
+
-[system logs](logging.md#system-logs) from the Container Apps environment and your container app.
17
17
- container [console logs](logging.md#container-console-logs) from your container app.
18
18
19
19
Log streams are accessible through the Azure portal or the Azure CLI.
@@ -33,11 +33,11 @@ To troubleshoot issues in your container app environment, you can view the syste
33
33
34
34
### Container app log stream
35
35
36
-
You can view a log stream of your container app's system or console logs from your container app page.
36
+
You can view a log stream of your container app's system or console logs from your container app page.
37
37
38
38
1. Go to your container app in the Azure portal.
39
39
1. Select **Log stream** under the *Monitoring* section on the sidebar menu.
40
-
1. To view the console log stream, select **Console**.
40
+
1. To view the console log stream, select **Console**.
41
41
1. If you have multiple revisions, replicas, or containers, you can select from the drop-down menus to choose a container. If your app has only one container, you can skip this step.
42
42
43
43
:::image type="content" source="media/observability/screenshot-log-stream-console-app.png" alt-text="Screenshot of Container Apps console log stream from app page.":::
@@ -48,7 +48,7 @@ You can view a log stream of your container app's system or console logs from yo
48
48
49
49
## View log streams via the Azure CLI
50
50
51
-
You can view your container app's log streams from the Azure CLI with the `az containerapp logs show` command or your container app's environment system log stream with the `az containerapp env logs show` command.
51
+
You can view your container app's log streams from the Azure CLI with the `az containerapp logs show` command or your container app's environment system log stream with the `az containerapp env logs show` command.
52
52
53
53
Control the log stream with the following arguments:
54
54
@@ -59,7 +59,6 @@ Control the log stream with the following arguments:
59
59
60
60
You can stream the system or console logs for your container app. To stream the container app system logs, use the `--type` argument with the value `system`. To stream the container console logs, use the `--type` argument with the value `console`. The default is `console`.
61
61
62
-
63
62
#### View container app system log stream
64
63
65
64
This example uses the `--tail` argument to display the last 50 system log messages from the container app. Replace the \<placeholders\> with your container app's values.
@@ -202,7 +201,6 @@ Use `Ctrl-C` or `Cmd-C` to stop the live stream.
202
201
203
202
View the last 50 console log messages using the `az containerapp logs show` command with the `--tail` argument. Replace the \<placeholders\> with your container app's values.
204
203
205
-
206
204
# [Bash](#tab/bash)
207
205
208
206
```azurecli
@@ -231,7 +229,6 @@ az containerapp logs show `
231
229
232
230
---
233
231
234
-
235
232
### View environment system log stream
236
233
237
234
Use the following command with the `--follow` argument to view the live system log stream from the Container Apps environment. Replace the \<placeholders\> with your environment values.
@@ -258,7 +255,6 @@ az containerapp env logs show `
258
255
259
256
Use `Ctrl-C` or `Cmd-C` to stop the live stream.
260
257
261
-
262
258
This example uses the `--tail` argument to display the last 50 environment system log messages. Replace the \<placeholders\> with your environment values.
Copy file name to clipboardExpand all lines: articles/container-apps/logging.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,19 +14,16 @@ ms.author: v-bcatherine
14
14
15
15
Azure Container Apps provides two types of application logging categories:
16
16
17
-
-[Container console logs](#container-console-logs): Log streams from your container console.
18
-
-[System logs](#system-logs): Logs generated by the Azure Container Apps service.
19
-
17
+
-[Container console logs](#container-console-logs): Log streams from your container console.
18
+
-[System logs](#system-logs): Logs generated by the Azure Container Apps service.
20
19
21
20
## Container console Logs
22
21
23
-
Container console logs are written by your application to the `stdout` and `stderr` output streams of the application's container. By implementing detailed logging in your application, you'll be able to troubleshoot issues and monitor the health of your application.
24
-
25
-
You can view your container console logs through [Logs streaming](log-streaming.md). For other options to store and monitor your log data, see [Logging options](log-options.md).
22
+
Container Apps captures the `stdout` and `stderr` output streams from your application containers and displays them as console logs. When you implement logging in your application, you can view the log data through the Azure portal or CLI. For more information, see [Logging options](log-options.md).
26
23
27
24
## System logs
28
25
29
-
System logs are generated by the Azure Container Apps to inform you of the status of service level events. Log messages include the following information:
26
+
Container Apps generates system logs to inform you of the status of service level events. Log messages include the following information:
30
27
31
28
- Successfully created dapr component
32
29
- Successfully updated dapr component
@@ -37,7 +34,7 @@ System logs are generated by the Azure Container Apps to inform you of the statu
0 commit comments