Skip to content

Commit 4266b1c

Browse files
Merge pull request #260080 from SophCarp/patch-10
Update logging
2 parents 43ab8d1 + 63837b8 commit 4266b1c

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

articles/container-apps/logging.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ You can view the [log streams](log-streaming.md) in near real-time in the Azure
2121

2222
## Container console Logs
2323

24-
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 troubleshoot problems and monitor the health of your app.
24+
Console logs originate from the `stderr` and `stdout` messages from the containers in your container app and Dapr sidecars. When you implement logging in your application, you can troubleshoot problems and monitor the health of your app.
25+
26+
27+
> [!TIP]
28+
> Instrumenting your code with well-defined log messages can help you to understand how your code is performing and to debug issues. To learn more about best practices refer to [Design for operations](/azure/architecture/guide/design-principles/design-for-operations).
2529
2630
## System logs
2731

@@ -42,6 +46,24 @@ Container Apps generates system logs to inform you of the status of service leve
4246
- Deactivating Old revisions
4347
- Error provisioning revision
4448

49+
System logs emit the following messages:
50+
51+
| Source | Type | Message |
52+
|---------|------|---------|
53+
| Dapr | Info | Successfully created dapr component \<component-name\> with scope \<dapr-component-scope\> |
54+
| Dapr | Info | Successfully updated dapr component \<component-name\> with scope \<component-type\> |
55+
| Dapr | Error | Error creating dapr component \<component-name\> |
56+
| Volume Mounts | Info | Successfully mounted volume \<volume-name\> for revision \<revision-scope\> |
57+
| Volume Mounts | Error | Error mounting volume \<volume-name\> |
58+
| Domain Binding | Info | Successfully bound Domain \<domain\> to the container app \<container app name\> |
59+
| Authentication | Info | Auth enabled on app. Creating authentication config |
60+
| Authentication | Info | Auth config created successfully |
61+
| Traffic weight | Info | Setting a traffic weight of \<percentage>% for revision \<revision-name\\> |
62+
| Revision Provisioning | Info | Creating a new revision: \<revision-name\> |
63+
| Revision Provisioning | Info | Successfully provisioned revision \<name\> |
64+
| Revision Provisioning | Info| Deactivating Old revisions since 'ActiveRevisionsMode=Single' |
65+
| Revision Provisioning | Error | Error provisioning revision \<revision-name>. ErrorCode: \<[ErrImagePull]\|[Timeout]\|[ContainerCrashing]\> |
66+
4567
## Next steps
4668

4769
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)