Skip to content

Commit 467172c

Browse files
Merge pull request #300539 from Akhilesh-microsoft/ACA/java_dynamic_log_level
[ACA-431220: java_dynamic_log_level: Freshness pass
2 parents a631560 + afaf3dc commit 467172c

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

articles/container-apps/java-dynamic-log-level.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,36 @@ author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.custom: devx-track-extended-java
88
ms.topic: how-to
9-
ms.date: 05/10/2024
9+
ms.date: 05/29/2025
1010
ms.author: cshoe
1111
---
1212

1313
# Set dynamic logger level to troubleshoot Java applications in Azure Container Apps (preview)
1414

1515
Azure Container Apps platform offers a built-in diagnostics tool exclusively for Java developers to help them debug and troubleshoot their Java applications running on Azure Container Apps more easily and efficiently. One of the key features is a dynamic logger level change, which allows you to access log details that are hidden by default. When enabled, log information is collected without code modifications or forcing you to restart your app when changing log levels.
1616

17-
Before getting started, you need to upgrade Azure Container Apps extension in your Azure CLI to version **0.3.51** or newer.
17+
Before getting started, you need to check for Azure Container Apps extension in your Azure CLI:
18+
19+
```azurecli
20+
az extension show --name containerapp
21+
```
22+
23+
If the extension isn't installed, install it first. If the Azure Container Apps extension is installed, it should be version **0.3.51** or newer.
24+
25+
# [install](#tab/install)
26+
27+
```azurecli
28+
az extension add -n containerapp
29+
```
30+
31+
# [update](#tab/update)
1832

1933
```azurecli
2034
az extension update --name containerapp
2135
```
2236

37+
---
38+
2339
> [!NOTE]
2440
> This feature is compatible with applications running on Java 8 or newer versions.
2541
@@ -57,7 +73,7 @@ Use the following command to adjust log levels for a specific logger:
5773
```azurecli
5874
az containerapp java logger set \
5975
--logger-name "org.springframework.boot" \
60-
--logger-level "info"
76+
--logger-level "info" \
6177
--resource-group <RESOURCE_GROUP> \
6278
--name <CONTAINER_APP_NAME>
6379
```
@@ -100,4 +116,4 @@ For example, if you set log level to `INFO`, your app prints logs with level `FA
100116
## Related content
101117

102118
> [!div class="nextstepaction"]
103-
> [Log steaming](./log-streaming.md)
119+
> [Log streaming](./log-streaming.md)

0 commit comments

Comments
 (0)