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/java-dynamic-log-level.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,36 @@ author: craigshoemaker
6
6
ms.service: azure-container-apps
7
7
ms.custom: devx-track-extended-java
8
8
ms.topic: how-to
9
-
ms.date: 05/10/2024
9
+
ms.date: 05/29/2025
10
10
ms.author: cshoe
11
11
---
12
12
13
13
# Set dynamic logger level to troubleshoot Java applications in Azure Container Apps (preview)
14
14
15
15
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.
16
16
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)
18
32
19
33
```azurecli
20
34
az extension update --name containerapp
21
35
```
22
36
37
+
---
38
+
23
39
> [!NOTE]
24
40
> This feature is compatible with applications running on Java 8 or newer versions.
25
41
@@ -57,7 +73,7 @@ Use the following command to adjust log levels for a specific logger:
57
73
```azurecli
58
74
az containerapp java logger set \
59
75
--logger-name "org.springframework.boot" \
60
-
--logger-level "info"
76
+
--logger-level "info" \
61
77
--resource-group <RESOURCE_GROUP> \
62
78
--name <CONTAINER_APP_NAME>
63
79
```
@@ -100,4 +116,4 @@ For example, if you set log level to `INFO`, your app prints logs with level `FA
0 commit comments